- Node JS
- Grunt JS
Getting Grunt Setup
Getting setup with grunt is pretty easy but there is a dependency you need to install before you get start. First, you needto make sure you have Node on your system.
1) Install NodeJS
Next we need the grunt command line interface.
2) Install the gruntCLI
npm install -g grunt-cli
First things first we should create a package.json file. A package.json file is a special file that node uses to track dependencies on a project. We can begin creating a package.json file by using the command
Next we should add grunt as one of our developer dependencies.
npm install --save-dev grunt
Using this command will install grunt to a new node_modules folder as well as add it as a developer dependency in our package.json file. Developer dependencies are dependencies that are only needed for development and are not necesarilly needed for our application to run.
Grunt relies on having a gruntfile.js so lets create one and do our work there.