A base client Project with GruntJS, WebMake, CJS, Backbone and Backbone Marionette
NodeJS v0.8.x is required
Install GruntJS
This will put the grunt
command in your system path
If you have installed grunt globally in the past (version 0.3.x), you will need to remove it first:
npm uninstall -g grunt
In order to get started, you'll want to install grunt's command line interface (CLI) globally. You may need to use sudo (for OSX, *nix, BSD etc) or run your command shell as Administrator (for Windows) to do this.
npm install -g grunt-cli
More Info at GruntJS: Getting Started
npm install
Run the following command at root of project
grunt
grunt stage
grunt prod
these 3 commands will compile all the project and leave the compiled files /dist
Only for Develop Enviroment
To set a watcher, so you wont need to be running grunt
every time a change is made, run:
grunt watch
or
grunt w
So, everytime a file is saved inside /app
it will run the compilation again
Install a Static Server tool (i.e. wup)
npm install -g wup
Step up on folder ./mockups
and run
cd mockups/
wup
Open your browser and go to http://localhost:8080