I would suggest that things which are only needed at build time be separated (BuildTools?). If the normal build isn't going to use the .opt files, then that section of the build should be commented out (I would leave it in place though to assist anyone who might be replacing the closure compiler component). Overall, I do agree that having the normal build generate files which the normal runtime will not use is bloat that should be eliminated.
From: Stanton Sievers/Westford/IBM@Lotus To: [email protected], Date: 05/31/2012 03:56 PM Subject: Re: Does anyone use the compress goal and and the yuicompressor-maven-plugin? I talked to Dan offline about this a bit.... Generating the optimized files when building anything but the java5 profile is a bit of a waste because in a "normal" build of Shindig we will use Closure to do simple optimizations and not these optimized files. In a Java 6 build of Shindig we end up shipping the extras and features jar with these extra optimized code in them that never gets used. At first I thought it might make sense to only do the compression if building the java 5 profile... but there's nothing stopping someone from using a Java 6 build of Shindig and injecting their own JsCompiler that may want to use these optimized files. Does that seem like a valid use case? In general, how much do we care about being able to build Java 5 versions of Shindig? I think this might be something we can phase out in 3.0 if no one has any objections. We should also simplify the builds so that Java 7 will work.... from what I've seen it doesn't work today. Thanks, -Stanton From: Henry Saputra <[email protected]> To: "[email protected]" <[email protected]>, Date: 05/31/2012 15:46 Subject: Re: Does anyone use the compress goal and and the yuicompressor-maven-plugin? It's used to generate opt postfixed files for the JS files when dual resource loader is used. When features jar is generated the yui compressor plugin is called to generate minified version of the JS. On Thursday, May 31, 2012, Dan Dumont <[email protected]> wrote: > What are those used for? Closure works on the raw source I thought, and > it's enabled by default now. > > > > From: Henry Saputra <[email protected]> > To: "[email protected]" <[email protected]>, > Date: 05/31/2012 12:00 PM > Subject: Re: Does anyone use the compress goal and and the > yuicompressor-maven-plugin? > > > > I thought that's used to generate the .opt files for the JavaScript? > > - Henry > > On Thursday, May 31, 2012, Dan Dumont <[email protected]> wrote: >> If not, can we remove it from the features and extras pom.xml? > >
