Grunt is a node.js build to. It’s generally useful for build automation in any javascript project.

Prerequisites

  1. Install homebrew first
  2. install node.js first

Installation

npm install -g grunt
npm install -g grunt-cli

Install the official grunt-init-node template to create node modules

npm install -g grunt-init

git clone https://github.com/gruntjs/grunt-init-node.git ~/.grunt-init/node

grunt-init node