The wiki is now available again. However, some recent changes may not have been restored.
Please see Computing Services' blog post for more details
Skip to end of metadata
Go to start of metadata

Don't know how to use Grunt? Find out here!

Step-by-step guide

Install grunt

$ sudo npm install -g grunt-cli

Initialise package.json

$ npm init

Install grunt task runner

$ npm install grunt --save-dev

Create a Gruntfile.js containing this




Install load-grunt-tasks

$ npm install load-grunt-tasks --save-dev

Add the config to Gruntfile.js




You are now good to go, adding plugins for the tasks you might need! Here are two to start you off:

  1. grunt-contrib-sass
  2. grunt-contrib-uglify