Kickstart HTML5 project bundling CAAT, CoffeeScript, Jessie and Guard.
Live: nbartlomiej.github.com/coffee-guard-caat-jessie .
Why use such set of tools?
-
CAAT is one very cool portable javascript framework (github.com/hyperandroid/CAAT).
-
CoffeeScript is a way of making JavaScript concise (jashkenas.github.com/coffee-script/).
-
Jessie allows to run Jasmine specs in console (github.com/futuresimple/jessie) and Jasmine is a nice BDD framework for JavaScript (pivotal.github.com/jasmine/).
-
Guard (github.com/guard/guard) auto-generates JavaScript files from CoffeeScript and auto-runs Jasmine specs through Jessie.
-
It’s efficient!
Dependencies: bundler gem, gems defined in the Gemfile, local node packages: coffee-script and jessie; install with:
1. gem install bundler 2. bundle install 3. npm install 5. run 'guard', hit enter (a.k.a. compile and test)
Workflow:
1. cd into project directory 2. run: 'guard' in a console window (for more details see https://github.com/guard/guard) 3. write specs in ./spec directory 4. write application code in ./src directory
Fun fact: this project is kitsch. Observe: the principle behind CAAT is to use exactly the same piece of code everywhere; and here we’re putting on top CoffeScript, a language that compiles into JavaScript. Truly barbaric.