[Pkg-javascript-devel] documentation about distributing minified versions of files
Jonas Smedegaard
dr at jones.dk
Mon May 6 15:54:18 UTC 2013
Quoting Jérémy Lal (2013-05-06 15:18:15)
> First please note that i am not talking here about minified versions
> of javascript files that are shipped in upstream tarballs [0].
>
> Please comment about what could be part of our javascript policy [1].
> It might help future javascript maintainers.
>
> A package that distribute minified files for convenience
> * must distribute the unminified files
> * should name the minified files like "foo.min.js"
> * should not minify all files blindly
> (i'm thinking of jquery.ui.datepicker-xx.js)
> * if no minifier was available at build time, the minified files must
> symlink to the unminified ones (instead of being removed or empty).
> * a node-foo package should not distribute minified files.
>
> Some of these could even become lintian tags.
All of above sounds sensible to me.
Thanks for summarizing.
- Jonas
--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
More information about the Pkg-javascript-devel
mailing list