Sunday, February 13, 2011

Building CoffeeScript from source

CoffeeScript includes a simple build system similar to Make and Rake. Naturally, it's called Cake, and is used for the build and test tasks for the CoffeeScript language itself.

git clone
cd coffee-script

To build the whole system
bin/cake build:full

To build the script for inclusion in the browser
bin/cake build:browser
MINIFY=false bin/cake build:browser

you may need to install uglify-js as well
npm install uglify-js

No comments:

Post a Comment