[ckan-dev] minification and licenses

Aron Carroll aron.carroll.lists at gmail.com
Fri May 4 09:47:56 UTC 2012


A single deployment script sounds good to me too.

On 3 May 2012, at 19:39, Ross Jones wrote:

> That sounds like a fair compromise, I'd be a little worried that it would get lost during deployment, or rather than people would forget to do it.  
> 
> Maybe we should have a 'paster deploy' that runs a set of paster commands in a single step for a deployment?  Presumably running min on a minified file would be harmless.
> 
> Other than that though I think it's a good idea.
> 
> Ross.
> 
> On 3 May 2012, at 17:29, Toby Dacre wrote:
> 
>> 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
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/ckan-dev
> 
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev





More information about the ckan-dev mailing list