Links
Snippets
Quick start example
From: Getting Started
- Requirements
grunt-cli
sudo npm install -g grunt-cli
or equivalent.- Only
grunt-cli
is shared. Each package usinggrunt
will typically keep its own verion ofgrunt
locally.
- Basic
packages.json
{ "name": "example_01", "version": "0.0.1", "devDependencies": { "grunt": "~0.4.0", "grunt-contrib-jshint": "~0.1.1", "grunt-contrib-nodeunit": "~0.1.2" } }
- Now install
grunt
alongside the package.npm install grunt --save-dev
- This creates a
node_modules
in a current directory if one didn't already exist.
- Continue … http://gruntjs.com/getting-started