coffeescript-jasmine-boilerplate is a small framework that was created with code katas in mind. It gives you a quick way to begin writing and testing CoffeeScript with Jasmine.
First, you'll need node.js and PhantomJS installed.
Next, clone the repo and create your project:
$ git clone [email protected]:andrewvida/coffeescript-jasmine-boilerplate.git <your-project-name>
Then, install grunt and all of its dependencies from the root of your project:
$ npm install
coffeescript-jasmine-boilerplate includes several plugins that allow you to focus on your kata. grunt-contrib-watch has been configured to keep an eye on whenever CoffeeScript files change. grunt-contrib-coffee will automatically compile your CoffeeScript into JavaScript and grunt-contrib-jasmine executes your jasmine specs.
Also included is jasmine-given. It is a jasmine helper that encourages leaner, meaner specs using Given
, When
, and Then
.
Once you're ready, kick it off by executing:
$ grunt watch
--NOTE: grunt-contrib-watch is still work in progress, so if you add a new .coffee file and nothing happens, you can compile manually and run the tests by using:
$ grunt coffee
then
$ grunt jasmine