Grunt May 1st, 2013
- Install the Grunt command line tool (requires node.js installed on your machine)…
sudo npm install grunt-cli -g
- Create package.json in root of project (list of Grunt plugin dependencies)
- npm install (install the dependencies)
- Create Gruntfile.js in root of project (configuration)
- Basically, you need three different functions to work with Grunt:
grunt.initConfig,grunt.loadNpmTasks, andgrunt.registerTask
- Basically, you need three different functions to work with Grunt: