Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Code sample from my talk at Ottawa JS on Grunt.
JavaScript PHP
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
slides
src
tests/js
.bowerrc
.gitignore
Gruntfile.js
README.md
bower.json
package.json

README.md

Code sample from my talk at Ottawa JS on Grunt - May 8, 2013.

Slides available on SlideShare and Speaker Deck

Dependencies

Installing Dependencies

All these installation take place in the terminal.

1. nvm

Install or update nvm. This allows the machine to run multiple versions of node.

  1. curl https://raw.github.com/creationix/nvm/master/install.sh | sh

2. Node

Install node using nvm.

  1. nvm install 0.10. This will install the latest version 0.10.*

3. rvm

Install or update rvm. This allows the machine to run multiple versions of ruby.

  1. If not or to update: \curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled. This may take a little while
  2. If updated rvm reload to use latest version

4. Ruby

Install ruby using rvm.

  1. rvm install 1.9. This will install the latest version 1.9.*

5. Compass & Sass

Install compass (this will install Sass) using ruby.

  1. gem update --system # may require sudo
  2. gem install compass

6. Bower

Install bower, front end dependency management.

  1. npm install -g bower # -g installs bower globally

7. Grunt CLI

Install the grunt cli to allow the grunt task runner to run. Grunt is not needed ONLY the cli tools. Grunt will part of the project dependencies to allow multiple versions of grunt to be installed.

  1. npm uninstall -g grunt # uninstall any previous global installation of grunt
  2. npm install -g grunt-cli

Install Project

  • Clone repo
  • From root directory of the project run npm install to install dev dependencies
  • From root directory of the proejct run bower install to install project dependencies
  • Run grunt tasks: grunt build:dev, grunt build:prod and grunt test.
Something went wrong with that request. Please try again.