This boilerplate is generated via backbone-amd generator in yeoman. I have made some minor updates:
- Add JST support
- Add backbone.layoutmanager
- Fix bug to support coffeescript build distribution
# Install yeoman, bower and grunt-cli
npm install -g yo grunt-cli bower coffee-script
# Clone to local disk
mkdir myproj && cd $_
git clone https://github.com/xiaocong/backbone.boilerplate.git .
# Install bower and node packages
bower install
npm install
# Notes:
# 1. Some node packages require to install other tools and libraries,
# you must meet the requirements firstly.
#
# 2. I met an error during using compass(https://github.com/gruntjs/grunt-contrib-compass).
# After I upgraded ruby to 2.0 and sass to 3.2, the issue was resolved.
# Start development server
grunt server
# Start distribution server
grunt server:dist
# Distribution
grunt build
# Test
grunt test