generator-nodestrap

1.0.2 • Public • Published

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

What's Included

server-side (npm)

  • express
  • mongodb
  • underscore
  • rjs
  • jade
  • async

client-side (bower)

  • bootstrap
  • underscore
  • backbone
  • jQuery
  • rjs
  • creatable

global dependencies

  • node
  • npm
  • grunt-cli
  • bower
  • coffee
  • stylus
  • mongod
  • foreman

directory structure

root
  |- public
    |- components
    |- images
    |- styles
    |- scripts
       |- compiled
       |- src
  |- src
    |- models
  |- view

Helpful Commands

Background Jobs

(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 &

Tasks

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

License

MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i generator-nodestrap

Weekly Downloads

0

Version

1.0.2

License

none

Last publish

Collaborators

  • raine