-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Grunt tasks
Dan Sparacio edited this page Jul 2, 2015
·
3 revisions
grunt is a task runner for node.js.
- Ensure that you have nodejs installed from http://nodejs.org/
- Install grunt using >
npm install grunt-cli -g
- Ensure that you are in the build directory of the project.
- Install the dependencies listed in package.json using >
npm install
- Run all tasks using >
grunt
- Run static checks using >
grunt jshint
- Run test suites and code coverage using >
grunt jasmine
- Run minification using >
grunt uglify
There are several grunt tasks configured for dash.js.
The uglify grunt task will create dash.min.js
from all the js files in the app subdirectories.
The jshint task will report code that does not conform to the settings specified in .jshintrc
The jasmine task will run unit and functional tests on the code and produce a coverage report (using istanbul).