Yeoman generator for a Heroku-ready, coffee-fueled web stack.
Scaffolding for a Heroku-ready, coffee-fueled web stack. node + bower + bootstrap + backbone + creatable
# First make sure you have yo installed npm install -g yo # Install and run the generator npm install generator-nodestrap yo nodestrap # Build with grunt grunt # Launch foreman start
root |- public |- components |- images |- styles |- scripts |- compiled |- src |- src |- models |- view
(these should get moved to a grunt watch task)
stylus public/styles/ -w & coffee -o ./ -cw src/ & coffee -o public/scripts/compiled -cw public/scripts/src/ & mongod &
grunt compile # compile coffeescript and stylus grunt static # make an http request to http://localhost:5001 and pipe the response to static/index.html grunt concat # concatenate all the client-side scripts into public/scripts/out.js grunt uglify # minify out.js into out.min.js grunt clean # delete compiled js, css, npm_modules, components, and static. grunt # compile, concat, and uglify