[Pkg-javascript-devel] documentation about distributing minified versions of files

Jérémy Lal kapouer at melix.org
Mon May 6 13:18:15 UTC 2013


Hi,

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.

Jérémy.




[0]
http://lists.debian.org/debian-devel/2012/08/msg00365.html
[1]
http://wiki.debian.org/Javascript/Policy




More information about the Pkg-javascript-devel mailing list