Minimum Files?

View: New views
7 Messages — Rating Filter:   Alert me  

Minimum Files?

by jonathan@myspace :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I want to host the least amount of files, minified. What files/folders
are unnecessary or duplicates but still legal and fully-functional?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to mochikit@...
To unsubscribe from this group, send email to mochikit-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Minimum Files?

by machineghost-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


You probably only need one file: Mochikit.js.  This file contains most
of the MochiKit libraries (but not all; I forget exactly which ones it
leaves out) in a compacted form.  The compacting isn't perfect though,
so if you really need to remove every last k possible you could
probably shrink it a bit more by using the YUI Compressor (or
something similar).

Hope that helps.

Jeremy

On Jun 18, 9:57 am, "jonathan@myspace" <myspacepro...@...>
wrote:
> I want to host the least amount of files, minified. What files/folders
> are unnecessary or duplicates but still legal and fully-functional?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to mochikit@...
To unsubscribe from this group, send email to mochikit-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Minimum Files?

by jonathan@myspace :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I downloaded the release version. The basic file structure is:

/ - Changes, LICENSE.txt, MANIFEST, META.json
/doc
/examples
/include
/lib
/packed
/tests

I'd prefer not to use the packed version, so I believe the only folder
I need is lib. Do I what does include to?

On Jun 18, 10:32 am, machineghost <machinegh...@...> wrote:

> You probably only need one file: Mochikit.js.  This file contains most
> of the MochiKit libraries (but not all; I forget exactly which ones it
> leaves out) in a compacted form.  The compacting isn't perfect though,
> so if you really need to remove every last k possible you could
> probably shrink it a bit more by using the YUI Compressor (or
> something similar).
>
> Hope that helps.
>
> Jeremy
>
> On Jun 18, 9:57 am, "jonathan@myspace" <myspacepro...@...>
> wrote:
>
> > I want to host the least amount of files, minified. What files/folders
> > are unnecessary or duplicates but still legal and fully-functional?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to mochikit@...
To unsubscribe from this group, send email to mochikit-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Minimum Files?

by Per Cederberg-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Use the content in the "packed" folder.

Cheers,

/Per

On Wed, Jun 18, 2008 at 8:06 PM, jonathan@myspace
<myspaceprojmb@...> wrote:

>
> I downloaded the release version. The basic file structure is:
>
> / - Changes, LICENSE.txt, MANIFEST, META.json
> /doc
> /examples
> /include
> /lib
> /packed
> /tests
>
> I'd prefer not to use the packed version, so I believe the only folder
> I need is lib. Do I what does include to?
>
> On Jun 18, 10:32 am, machineghost <machinegh...@...> wrote:
>> You probably only need one file: Mochikit.js.  This file contains most
>> of the MochiKit libraries (but not all; I forget exactly which ones it
>> leaves out) in a compacted form.  The compacting isn't perfect though,
>> so if you really need to remove every last k possible you could
>> probably shrink it a bit more by using the YUI Compressor (or
>> something similar).
>>
>> Hope that helps.
>>
>> Jeremy
>>
>> On Jun 18, 9:57 am, "jonathan@myspace" <myspacepro...@...>
>> wrote:
>>
>> > I want to host the least amount of files, minified. What files/folders
>> > are unnecessary or duplicates but still legal and fully-functional?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to mochikit@...
To unsubscribe from this group, send email to mochikit-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Minimum Files?

by Per Cederberg-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Darn. My eyes didn't parse a "not" in the last few sentences. Sorry.

But then I don't understand the question? The docs specifies what
depends on what. There is a wiki page about creating your own packed
version if that is what you're after:

http://trac.mochikit.com/wiki/RollYourOwn

Cheers,

/Per

On Wed, Jun 18, 2008 at 11:03 PM, Per Cederberg <cederberg@...> wrote:

> Use the content in the "packed" folder.
>
> Cheers,
>
> /Per
>
> On Wed, Jun 18, 2008 at 8:06 PM, jonathan@myspace
> <myspaceprojmb@...> wrote:
>>
>> I downloaded the release version. The basic file structure is:
>>
>> / - Changes, LICENSE.txt, MANIFEST, META.json
>> /doc
>> /examples
>> /include
>> /lib
>> /packed
>> /tests
>>
>> I'd prefer not to use the packed version, so I believe the only folder
>> I need is lib. Do I what does include to?
>>
>> On Jun 18, 10:32 am, machineghost <machinegh...@...> wrote:
>>> You probably only need one file: Mochikit.js.  This file contains most
>>> of the MochiKit libraries (but not all; I forget exactly which ones it
>>> leaves out) in a compacted form.  The compacting isn't perfect though,
>>> so if you really need to remove every last k possible you could
>>> probably shrink it a bit more by using the YUI Compressor (or
>>> something similar).
>>>
>>> Hope that helps.
>>>
>>> Jeremy
>>>
>>> On Jun 18, 9:57 am, "jonathan@myspace" <myspacepro...@...>
>>> wrote:
>>>
>>> > I want to host the least amount of files, minified. What files/folders
>>> > are unnecessary or duplicates but still legal and fully-functional?
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to mochikit@...
To unsubscribe from this group, send email to mochikit-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Minimum Files?

by machineghost-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


>>Do I what does include to?
That's not even a sentence, let alone a question, but I'll try to
answer it anyway ;-)

If you don't want to use the packed version, the files you need are in
lib/MochiKit.  The only one you NEED is Base.js; if all you have in
your HTML is:
<script src="Base.js"></script>
you'll be able to use every one of the basic Mochikit functions
without a problem.

However, MochiKit has a lot more to offer than just the Base library.
Personally I consider the DOM and Signal libraries indispensable, but
I wouldn't be caught dead using the logging library (why bother if you
have Firebug?).  You'll have to make a similar decision based on your
needs, and then you will need to include each library you want to use
with a new <script> tag (along with any of their dependencies).

Of course, the order of these tags will be dictated by their
librariy's requirements.  For instance, if you want Base and DOM,
you'll also need Iter and Style, and your HTML should look something
like:
<script src="Base.js"></script>
<script src="Iter.js"></script> <!-- Has to come after Base because it
requires it -->
<script src="Style.js"></script> <!-- Has to come after Base because
it requires it -->
<script src="DOM.js"></script> <!-- Has to come after the other 3, as
it requires all of them -->

Hope that helps (if it didn't, try making your question as
intelligible as possible next time).

Jeremy

On Jun 18, 11:06 am, "jonathan@myspace" <myspacepro...@...>
wrote:

> I downloaded the release version. The basic file structure is:
>
> / - Changes, LICENSE.txt, MANIFEST, META.json
> /doc
> /examples
> /include
> /lib
> /packed
> /tests
>
> I'd prefer not to use the packed version, so I believe the only folder
> I need is lib. Do I what does include to?
>
> On Jun 18, 10:32 am, machineghost <machinegh...@...> wrote:
>
> > You probably only need one file: Mochikit.js.  This file contains most
> > of the MochiKit libraries (but not all; I forget exactly which ones it
> > leaves out) in a compacted form.  The compacting isn't perfect though,
> > so if you really need to remove every last k possible you could
> > probably shrink it a bit more by using the YUI Compressor (or
> > something similar).
>
> > Hope that helps.
>
> > Jeremy
>
> > On Jun 18, 9:57 am, "jonathan@myspace" <myspacepro...@...>
> > wrote:
>
> > > I want to host the least amount of files, minified. What files/folders
> > > are unnecessary or duplicates but still legal and fully-functional?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to mochikit@...
To unsubscribe from this group, send email to mochikit-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Minimum Files?

by jonathan@myspace :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Oh man, my middle school teacher would kill me :P.

Thanks for the help.

On Jun 18, 2:52 pm, machineghost <machinegh...@...> wrote:

> >>Do I what does include to?
>
> That's not even a sentence, let alone a question, but I'll try to
> answer it anyway ;-)
>
> If you don't want to use the packed version, the files you need are in
> lib/MochiKit.  The only one you NEED is Base.js; if all you have in
> your HTML is:
> <script src="Base.js"></script>
> you'll be able to use every one of the basic Mochikit functions
> without a problem.
>
> However, MochiKit has a lot more to offer than just the Base library.
> Personally I consider the DOM and Signal libraries indispensable, but
> I wouldn't be caught dead using the logging library (why bother if you
> have Firebug?).  You'll have to make a similar decision based on your
> needs, and then you will need to include each library you want to use
> with a new <script> tag (along with any of their dependencies).
>
> Of course, the order of these tags will be dictated by their
> librariy's requirements.  For instance, if you want Base and DOM,
> you'll also need Iter and Style, and your HTML should look something
> like:
> <script src="Base.js"></script>
> <script src="Iter.js"></script> <!-- Has to come after Base because it
> requires it -->
> <script src="Style.js"></script> <!-- Has to come after Base because
> it requires it -->
> <script src="DOM.js"></script> <!-- Has to come after the other 3, as
> it requires all of them -->
>
> Hope that helps (if it didn't, try making your question as
> intelligible as possible next time).
>
> Jeremy
>
> On Jun 18, 11:06 am, "jonathan@myspace" <myspacepro...@...>
> wrote:
>
> > I downloaded the release version. The basic file structure is:
>
> > / - Changes, LICENSE.txt, MANIFEST, META.json
> > /doc
> > /examples
> > /include
> > /lib
> > /packed
> > /tests
>
> > I'd prefer not to use the packed version, so I believe the only folder
> > I need is lib. Do I what does include to?
>
> > On Jun 18, 10:32 am, machineghost <machinegh...@...> wrote:
>
> > > You probably only need one file: Mochikit.js.  This file contains most
> > > of the MochiKit libraries (but not all; I forget exactly which ones it
> > > leaves out) in a compacted form.  The compacting isn't perfect though,
> > > so if you really need to remove every last k possible you could
> > > probably shrink it a bit more by using the YUI Compressor (or
> > > something similar).
>
> > > Hope that helps.
>
> > > Jeremy
>
> > > On Jun 18, 9:57 am, "jonathan@myspace" <myspacepro...@...>
> > > wrote:
>
> > > > I want to host the least amount of files, minified. What files/folders
> > > > are unnecessary or duplicates but still legal and fully-functional?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to mochikit@...
To unsubscribe from this group, send email to mochikit-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---