Code sample from my talk at Ottawa JS on Grunt - May 8, 2013.
Slides available on SlideShare and Speaker Deck
All these installation take place in the terminal.
Install or update nvm. This allows the machine to run multiple versions of node.
curl https://raw.github.com/creationix/nvm/master/install.sh | sh
Install node using nvm.
nvm install 0.10
. This will install the latest version0.10.*
Install or update rvm. This allows the machine to run multiple versions of ruby.
- If not or to update:
\curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled
. This may take a little while - If updated
rvm reload
to use latest version
Install ruby using rvm.
rvm install 1.9
. This will install the latest version1.9.*
Install compass (this will install Sass) using ruby.
gem update --system
# may require sudogem install compass
Install bower, front end dependency management.
npm install -g bower
# -g installs bower globally
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.
npm uninstall -g grunt
# uninstall any previous global installation of gruntnpm install -g grunt-cli
- 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
andgrunt test
.