Alternatively if it's not a viable option, i could include a config setting like path_to_yuicompressor, and if set and is a valid file, call it that way, but that would mean an extra step in the documentation and setting it up :)
On Thu, 2008-03-13 at 14:13 +0100, Chris Chabot wrote: > The java maven build system includes the yuicompressor-maven-plugin to > create minified javascripts to use in the gadget's content, however the > PHP version doesn't have a build system in which i could mirror this > behavior, however i would like to also be able to serve minified > javascript files (on +/- 80k javascript it could make a noticeable > difference). > > The options i see at the moment to do this are: > - Create a shell script that creates minified javascript files > (presumable inside of the features tree), this doesn't sound very > elegant and like it would lead to problems in the future though. > - Minify them on the fly as they are used for the first time, and store > them in the data case, this feels like the best option to me. > > That would mean to have this working out of the box, i would have to > include a working yuicompressor.jar in shindig, now yuicompressor is > licensed under the BSD license so that should allow for inclusion in the > tree, besides i do believe also having seen jQuery in there which is > dual licensed under the MIT and GPL license (presumably in this case > were counting on its MIT license, which is for all intents and purposes > identical to yuicompressor's license). > > So what do you guys think, would it be ok to include the yuicompressor > in the repo? > > -- Chris >

