Hi Jonas, On Fri, 2012-07-06 at 15:13 +0200, Jonas Smedegaard wrote: > 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.
This way all JS packages will depends on javascript-minifier and for me it is not a good idea, because JS packages usually have only some kB of size and do not depend on java or nodejs to run. > 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. It sounds good for me. Cheers, -- Marcelo Jorge Vieira xmpp:me...@jabber-br.org http://metaldot.alucinados.com
signature.asc
Description: This is a digitally signed message part