[ckan-dev] minification and licenses

Toby Dacre toby.okfn at gmail.com
Thu May 3 16:29:57 UTC 2012


Hi,

With the fanstatic branch we can now serve minified files in production if
available

As far as minification goes it would be nice to semi-automate this and not
add extra dependencies.  I've found

http://opensource.perlig.de/rjsmin/  a python implementation of jsmin
http://opensource.perlig.de/rcssmin/ a python implementation of yui
compressor

they are licensed under the apache2 license as we are AGPL2 to the best of
my knowledge including them in our codebase would be acceptable.

The included code would be just 2 files rjsmin.py and rcssmin.py.  I
suggest adding them to a directory ckan/include along with a LICENCE file
explaining the licensing and adding them to the main ckan LICENSE file -
both files contain license/copyright holder info in their headers

If we do this then it is easy to add a `paster minify` command to ckan.  I
have a simple proof of concept complete

are people happy with this?

Toby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20120503/8d380d57/attachment.html>


More information about the ckan-dev mailing list