A base client Project with GruntJS, WebMake, CJS, Backbone and Backbone Marionette
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app Initial commit Mar 14, 2013
dist Initial commit Mar 14, 2013
mockups Initial commit Mar 14, 2013
vendor Initial commit Mar 14, 2013
.gitignore Initial commit Mar 14, 2013
Gruntfile.js Initial commit Mar 14, 2013
README.md Update README.md Mar 14, 2013
builder.grunt.js Initial commit Mar 14, 2013
package.json Initial commit Mar 14, 2013

README.md

base-client-project

A base client Project with GruntJS, WebMake, CJS, Backbone and Backbone Marionette

How to

NodeJS v0.8.x is required

Install GruntJS

This will put the grunt command in your system path

Installing GruntJS CLI

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

Install Dependencies

npm install

Compile the project

Run the following command at root of project

Develop Enviroment

grunt

Stagging Enviroment

grunt stage

Production Enviroment (Stagging and minified)

grunt prod

these 3 commands will compile all the project and leave the compiled files /dist

FileSystem Watcher

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

Using Mockups

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