To install grunt first you must have NodeJs installed, NodeJS will have npm (node packaged modules) Run the following commands
Install grunt-cli globally by running the following command
npm install -g grunt-cli
package.json file, and should be committed with your project source.
Navigate to the root directory of your project, then run
Once you have successfully setup now you can use Grunt CLI commands to automate your task
This will automatically copy all the assets from
This will compile all the sass files to
This will automatically compile the sass files on changes
This will run 4 grunt tasks:
Sass file compilation
It will connect web server on http://localhost:9000
Watch for the changes in sass files
Your are free to customize the Grunt task to your need by editing the
Gruntfile.js in the root directory.