Boundary UI Coding Test With Marionette / Browserify TodoMVC
After trying to clean up the original Marionette Backbone TodoMVC by adding a grunt build pipeline with browserify and karma, jasmine, tdd and linting I realized I was taking too long and not making a lot of progress.
I found this and decided to fork it instead. I hope it's clean enough so it's not too painful to read.
Here is the side by side dif of the commit
Install grunt globally
$ [sudo] npm install grunt -g
$ [sudo] npm install grunt-cli -g
Install local node modules
$ npm install
$ npm start
For development:
$ grunt init:dev && grunt build:dev
For production:
$ grunt build:prod
With watch:
$ grunt watch
Requires PhantomJS to be installed globally:
$ sudo npm install -g phantomjs
To run tests in TDD watch mode:
$ grunt tdd
To run tests once:
$ npm test