Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 619 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 619 Bytes

Generator for Yeoman

Scaffolds an app with Backbone.js, Require.js and Mocha-phantomjs testing.

Make sure you have Yeoman installed: sudo npm install -g yo

Get the generator

Run the generator

  • mkdir ~/my_app
  • cd ~/my_app
  • yo backbone-amd

Mocha in the browser (tests in .test/tests.js)

  • npm start
  • Browse to 0.0.0.0:8000/.test/index.html

Mocha in the browser and console (tests in test/*.coffee)

  • grunt watch
  • edit a .coffee file in /test
  • Browse to 0.0.0.0:8000/.test/index.html