Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 1.14 KB

grunt-commands.md

File metadata and controls

32 lines (18 loc) · 1.14 KB

Grunt Commands

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.

Resources

Requirements

Install Node.js on your machine.

Installing Grunt

npm install -g grunt-cli - A Node NPM command that will install the grunt command line commands to your system.

The Basics

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.