Grunt is not only a weird noise you make when attempting to do something physically demanding, it's also an amazing command line tool that allows you to automate a lot of the tedious duties we need to do as web developers.
- gruntjs.com
- Grunt for People Who Think Things Like Grunt are Weird and Hard
- Get Up And Running With Grunt
Install Node.js on your machine.
npm install -g grunt-cli
- A Node NPM command that will install the grunt command line commands to your system.
grunt
- Will run the default task set up in your Gruntfile.js (same as grunt default
).
grunt <taskname>
- Will run a task specified in the Gruntfile.js so something like grunt sass
will run the Sass task once and then exit out.
grunt watch
- Similarly will continuously watch your directory to dynamically run watch
tasks (defined in Gruntfile.js) as files are modified.