# get npm dependencies
npm install
# install global npm dependencies
npm -g install grunt-cli
npm -g install bower
npm -g install karma
# also to be able to run tests from cli
# without browser window popping
# consider to install PhantomJS
http://phantomjs.org/download.html
# get ruby dependencies
bundle install
There are several grunt tasks available:
grunt karma:unit
starts karma test runner withsingleRun: false
, it polls for changes and re-runs testsgrunt karma:ci
starts karma test runner withsingleRun: true
enabled, good to use in CI scenariosgrunt compass
compiles compass projectgrunt
,grunt build
will build project intobuild
directory. It compiles project into single file, minifies it and compiles styles.
To update all the dependencies to latest compatible versions run bower install
.
Tests use Jasmin and Chai for assertions.