Install Grunt on Windows

12/11/2014 2:35:37 AM

Do the following to install Grunt on Windows.

  1. Install Ruby. (http://rubyinstaller.org/)
  2. Install Node JS. This will install npm, the node package manager (http://nodejs.org/)
  3. Use npm to install grunt
  4. Install Ruby Gem sass.
  5. Navigate to the folder where your Grunt files are
  6. Download all required grunt plugins
  7. Run Grunt
//RUN ALL OF THESE FROM A WINDOWS COMMAND PROMPT

//update npm
npm install -g npm

//install grunt
npm install -g grunt-cli

//install ruby gem sass
gem install sass

//install all required plugins, this one line will install all plugins required based on your current folder with grunt files
//this needs to be run within a folder with a gruntfile.js and package.jon
npm install

//install sass
npm install --save-dev grunt-sass

//install modules
npm install grunt-contrib-sass --save-dev
npm install grunt-contrib-watch --save-dev
npm install grunt-contrib-uglify --save-dev
npm install grunt-contrib-concat --save-dev
npm install grunt-contrib-cssmin --save-dev

//run grunt - this will start watching for all changes in your folder
grunt