Template for Express, Jade, Less, Coffee, Handlebars, Gulp
./logs
,If you don’t like CoffeeScript, use plain JavaScript.
If you dont like Jade, you can use Handlebars HTML for Node Views
if you don’t like LESS and prefer regular CSS, that’s OK too. Just write CSS :)
Run sudo /setup-dev.sh
or sudo ./setup-prod.sh
as appropriate.
Installs global as well as local Node packages, and Bower dependencies.
config/env.sample.json
to config/env.json
and update.NODE_ENV
- ‘development’ or ‘production’. config/env.json
as needed. Default port is 8080../NAME.js
or node NAME.js
Production
npm start
to Start.Run npm stop
to Stop.
Logs are written to
./logs
gulp default
executes thebuild
task.
gulp all
- Run tests and Build.gulp test
- Run tests - lint, mocha and phantomjs.gulp watch
- Watch for jade, less and coffeescript file changes and re-build on the fly.gulp build
- Re-build jade, less and coffeescript files.gulp release
- Test, build, bump versions and git tag.