Grunt – JavaScript Task Runner for Automate Your Development

In this quick tutorial, I will let you know Grunt Task runner and use of Grunt JS in your application.Grunt is a build tool that use to automate your application activities like minification, compilation, unit testing, linting, etc, these task very time consuming and repetitive , Grunt is a task runner can do most of that repetitive work for you without any team effort.Grunt and Grunt plugins are installed and managed via npm.

What is grunt:

Grunt is use for automate build and deployment of your application, there a lot of plugin available for do different task.

How to Install Grunt

Grunt is very easy to use and simple understand, First need to install npm(node package manager) by using install npm command and then run below command to install grunt on your machine.

$ npm install -g grunt-cli

How to install Grunt js project dependencies:

$ npm install

How to run Grunt:

$ grunt

You can also check other recommended tutorial of Grunt js,

There are two files are responsible for Grunt all tasks.

1- package.json :

This file is used by npm to store metadata for projects published as npm modules.

2- Gruntfile.js :

This file is used to configure or define tasks and load Grunt plugins..

Update:
You can learn step by step example about Automate AngularJS Build Using Grunt.