GitHub - MathRivest/grunt-boilerplate: Grunt 0.4 boilerplate

1 min read Original article ↗

What is this

Boilerplate for Grunt >= 0.4

How to use

  • Install Node.js >= 0.8.0 and Ruby
  • Put the package.json and Gruntfile.js in your project root
  • The npm module Grunt command line interface must be installed globally npm install -g grunt-cli
  • Run npm install to install all the dev dependencies on the project directory
  • Use the grunt x command to run what you need

Avalaible commands are

  • grunt js everything related to javascript
  • grunt css compile the compass project
  • grunt img optimize all images
  • grunt test lint the javascript
  • grunt default runs everything
  • grunt watch watch for changes
  • grunt start opens the project, starts a local webserver and watch for changes
  • and more!