On 12-07-05 at 11:05pm, Mehdi Dogguy wrote: > On 05/07/12 22:57, Jonas Smedegaard wrote: > >If we skip installing minified files, then yes it breaks. If we skip > >minifying but still install - i.e. install files that are 0% minified > >- then only download times should be affected. > > I think that this is the best option we have at this stage. In any case, > it's your call as a maintainer to choose which solution you want to > implement. > > Switching to slimit might be a sexy option but also falls in the > "changing the compressor" category, imho.
How about this: Now: 1) Skip generating and installing any minified files at build time. 2) Try minify and fallback to copy in postinst script: for if in $files-to-be-minified; do of="$(basename "$if" .js).min.js" javascript-minifier -o "$of" "$if" | cp -a "$if" "$of" done 3) Remove minified/copied files in "remove" state of postrm script: for if in $files-to-be-minified; do of="$(basename "$if" .js).min.js" rm -f "$of" done (javascript-minifier should use same basic syntax as both yui-compressor and uglifyjs share today.) Official result now: * Javascript files will not be minified. Unofficial possibility now: * Add /usr/local/bin/javascript-minifier symlink to yui-compressor * Add /usr/local/bin/javascript-minifier custom compressor script Official possibility later (perhaps even at a stable point release): * Add javascript-minifier package with debconf handling of /etc/alternatives symlinking of /usr/bin/javascript-minifier and perhaps also /usr/sbin/update-javascript-minifications. How does that sound? Too complex at this stage? @Marcelo: What do you think? What do others in the team think? Regards, - Jonas P.S. Yes - I still think generally across all Javascript packages... -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc
Description: Digital signature
_______________________________________________ Pkg-javascript-devel mailing list Pkg-javascript-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel