Getting Started with a grunt workflow:

I've got a friend who is completely lost when it comes to getting started with a node/grunt workflow. I told him I'd do a write up on getting going, so, here we go:

Install Node

Windows:

Install the node package from nodejs.org.

OS X:

1: If you don't already have homebrew installed, do so now by running this command:

$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

2: Install the nodejs package with homebrew

$ brew install nodejs

This will install the node runtime and the npm package manager

Install grunt and yo

$ npm install -g grunt grunt-cli yo

Install a generator

We're going to install the generator-phaser-official package for demonstration purposes

$ npm install -g generator-phaser-official

Create a directory for the generator to run in

$ mkdir phaser-game && cd $_

Run the generator

$ yo phaser-official

Follow the prompts

     _-----_
    |       |
    |--(o)--|   .--------------------------.
   `---------´  |    Welcome to Yeoman,    |
    ( _´U`_ )   |   ladies and gentlemen!  |
    /___A___\   '--------------------------'
     |  ~  |
   __'.___.'__
 ´   `  |° ´ Y `

You're using the fantastic Phaser generator.  
[?] What is the name of your project? phaser game
[?] Which Phaser version would you like to use? 2.0.1
[?] Game Display Width: 800
[?] Game Display Height: 600

Open the directory in your editor

I use sublime text

$ subl .

Run the grunt file

$ grunt

Start coding

That's all there is to it.