[Pkg-javascript-devel] Bug#581708: javascript-common: "bundles" idea

Paul Wise pabs at debian.org
Sat May 15 05:31:38 UTC 2010


Package: javascript-common
Severity: wishlist

In response[1] to the protoaculous RFS[2], I wrote this:

> Looking at the postinst code, actually I'm wondering if a more
> generalised solution would be useful. Instead of including lots of JS
> files in a page, you could define "bundles" and dpkg would then
> rebuild the bundles whenever you upgrade one of the libjs-* packages
> in the bundle. This could go into javascript-common to allow the speed
> advantages of protoaculous with more generality.

Thinking a bit more about this, the following could be done:

javascript-common could provide an Apache alias javascript-common-bundles

javascript-common could set a trigger on files in /usr/share/javascript

users and packages could define bundles in /etc/javascript-common/bundles/*.conf

the trigger would then concatenate the files listed in the bundle and optionally compress them with whatever javascript compressor is defined in the configuration (yui-compressor should be the default)

http://lists.debian.org/debian-mentors/2010/05/msg00188.html
http://lists.debian.org/debian-mentors/2010/05/msg00178.html





More information about the Pkg-javascript-devel mailing list