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 https://github.com/jashkenas/coffee-script.git
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
or
MINIFY=false bin/cake build:browser


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

No comments:

Post a Comment