|
From: Jesse V. <je...@6t...> - 2003-06-10 17:12:02
|
That folder structure sounds good to me.
Jesse
Raymond Irving wrote:
>Very good! I like to have the option of using either
>two or one file.
>
>PS. As for the sub-folders inside the bin/ directory
>I've came up with the following suggestion:
>
>bin/java.compressor - java version
>bin/jscript.compressor - html version
>bin/realtime.compressor - server-side version
>
>?
>
>--
>Raymond Irving
>
>
>--- Jesse Vitrone <je...@6t...> wrote:
>
>---------------------------------
> I see your point.
>
>With the way the compressor is now, the user can
>choose which way theywant to do it. If they want it
>all in one file, they set up the xmlthat way. If they
>want to have a merge-ie.js, etc, they can set it
>upthat way too.
>
>Jesse
>
>Raymond Irving wrote:
>
>One of the problem I've seen with solution
>youmentioned earlier is that it will even include
>filesopera,ns4, etc if you're using IE.I don't think
>two files should be a big problem. We'recoming down
>from aleast 5-10 individual files.--Raymond Irving---
>Jesse Vitrone <je...@6t...> wrote:
>
>Interesting idea, but I'm trying to keep the<script>
>tags in the browser to a minumum. I finished off the
>code theway I suggested this morning and it seems to
>work well, so I'll probablyjust stick with it that
>way. This way also allows me to just
>include"myfile.js" in my page and get everything I
>need.JesseRaymond Irving wrote:
>
>Well how about generating only browser specific
>
>merge
>
>modules?dynapi.jsmerge.ie.jsmerge.dom.jsmerge.opera.jsmerge.ns4.jsin
>the browser we could then do the following:<script
>src="../src/dynapi.js"></script><script>if(dynapi.ua.ie)
>{ dynapi.setPath('../src/','merge.ie.js');}else
>if(dynapi.ua.opera) {
>dynapi.setPath('../src/','merge.opera.js');}else
>if(dynapi.ua.ns4) {
>dynapi.setPath('../src/','merge.ns4.js');}else
>if(dynapi.ua.supported) {
>dynapi.setPath('../src/','merge.dom.js');}else{
>alert('Browser not supported');}</script>The dynapi.js
>file would be compressed and stored
>
>as
>
>dynapi.js. The other browser specific
>(andnon-specific) libraries could then be merged into
>asingle file. Only two files will be needed
>
>(dynapi.js
>
>and merge.{whatever}.js) The setPath() function will
>support a second
>
>argument
>
>called pkgfile (Package file). This will be used
>toallow users to load in an alternative package.js
>
>
>file
>
>--Raymond Irving--- Jesse Vitrone
><je...@6t...>
>
>wrote:
>
>--------------------------------- Thanks for the
>suggestions Kevin and Raymond, It looks like I can
>make my xml something likethis: <input-group>
>
>
><input-filename="D:/development/6thgear/dynapi/src/api/mouse_ie.js"compare-value="dynapi.ua.ie"
>
>
>/>
>
><input-filename="D:/development/6thgear/dynapi/src/api/mouse_dom.js"/>
>
>
> </input-group>and have my code generate the js:
> if (dynapi.ua.ie) { // mouse_ie.js compressed
>code goes here } else { // mouse_dom.js
>compressed code goes here }I'll take the first of
>the group, and make the if.Everything up to the last
>will be an else ifAnd the last, makes the else.All
>input-files inside an input-group need acompare-value,
>except forthe last one.This looks like it should work.
> When I hand code
>
>my
>
>compressed file tolook like the above, it works.
>
>
>It's
>
>more code then would normally beneeded, since
>bothfiles are going to get included, but I can't
>
>thinkof
>
>any other way around this problem. Plus, only the
>
>
>one
>
>needed willhave to get parsed, so it shouldn't be
>
>
>too
>
>bad.What do you think? Do you see any problems that
>Imight run intotrying to do it this way/Also, since I
>have to redo the way the xml is
>
>parsed,
>
>I'm going to usethe built in xml parsing that java
>
>
>has
>
>and lose that dom4j.jardependency. Not as pretty,
>
>
>but
>
>it gets the job done.Thanks for the help.JesseKevin
>wrote: Sorry, didn't send to the list!----- Original
>
>
>Message
>
>----- From: "Kevin" <ke...@ke...>To:"Jesse
>Vitrone" <je...@6t...>Sent:Tuesday, June
>10, 2003 4:22 AMSubject: Re:[Dynapi-Dev] compressing
>files I mean the packages.js file can help with
>thedependency logic for your xml config file.Though
>Idon't know how to get around the
>(dom/opera/ns4/ielayer)*(mouse) file split.The other
>inline
>
>compressor
>
>method would work here - though server load
>impactandno cache of the transient stream :( what! I
>wish
>
>I
>
>could explain better ).As for this method once
>adeveloper has a custom pre-processed and
>compressedfileset published on the server there is no
>need
>
>for
>
>the library. Difficult to choose. ThoughI like
>onebundle per (virtual) server with
>littleload.-Kevin----- Original Message ----- From:
>JesseVitroneTo: KevinCc: Dynapi-DevSent: Sunday, June
>
>
>08,
>
>2003 7:19 PMSubject: Re: [Dynapi-Dev]
>compressingfilesKevin, I'm not sure what you mean
>about
>
>remove
>
>the existing library system from the api. With the
>
>
>
>
> xml config that I you can customize, you just
>pick andchoose what JS files you want it to compress
> and merge. So, I have the basic DynAPI
>ones, plus theothers that I use, plus my own. It
>lookssomethinglike this:<jscompressor>
><compressed-file
>
>name="D:/development/6thgear/js/6thgear_compressed.js">
>
>
> <input-file
>
>name="D:/development/6thgear/dynapi/src/dynapi.js"/>
>
>
> <input-file
>
>name="D:/development/6thgear/dynapi/src/api/event.js"/>
>
>
> <input-file
>
>name="D:/development/6thgear/dynapi/src/api/dyndocument.js"/>
>
>
> <input-file
>
>name="D:/development/6thgear/dynapi/src/api/dynlayer_base.js"/>
>
>
> <input-file
>
>name="D:/development/6thgear/dynapi/src/api/dynlayer_dom.js"/>
>
>
> <input-file
>
>name="D:/development/6thgear/dynapi/src/api/mouse_dom.js"/>
>
>
> <input-file
>
>name="D:/development/6thgear/dynapi/src/api/ext/dynlayer.inline.js"/>
>
>
> <input-file
>name="D:/development/6thgear/js/6thgear.js"/>
>
>
><input-file
>name="D:/development/6thgear/js/gearWindow.js"/>
>
>
>
>
><input-file
>name="D:/development/6thgear/js/templates.js"/>
></compressed-file> <compressed-file
>
>name="D:/development/6thgear/js/6thgear_edit_compressed.js">
>
>
> <input-file
>
>name="D:/development/6thgear/dynapi/src/api/ext/dragevent.js"/>
>
>
> <input-file
>name="D:/development/6thgear/js/6thgear_edit.js"/>
>
>
>
>
> <input-file
>
>name="D:/development/6thgear/js/gearWindow_edit.js"/>
>
>
> <input-file
>
>name="D:/development/6thgear/js/templates_edit.js"/>
>
>
>=== message truncated
>===__________________________________Do you
>Yahoo!?Yahoo! Calendar - Free online calendar with
>sync to
>Outlook(TM).http://calendar.yahoo.com-------------------------------------------------------This
>SF.net email is sponsored by: Etnus, makers of
>TotalView, The bestthread debugger on the planet.
>Designed with thread debugging featuresyou've never
>dreamed of, try TotalView 6 free at
>www.etnus.com._______________________________________________Dynapi-Dev
>mailing
>lis...@li...://www.mail-archive.com/dyn...@li.../
>
>
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
>http://calendar.yahoo.com
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Etnus, makers of TotalView, The best
>thread debugger on the planet. Designed with thread debugging features
>you've never dreamed of, try TotalView 6 free at www.etnus.com.
>_______________________________________________
>Dynapi-Dev mailing list
>Dyn...@li...
>http://www.mail-archive.com/dyn...@li.../
>
>
|