A simple template for JS projects using grunt, browserify, and mocha.
$ npm install -g grunt-cli
$ git clone [email protected]:Ada-Developers-Academy/js-playground.git
$ cd js-playground
$ npm install
js-playground/
|_ index.html <- root html test file
|_ test/ <- tests
|_ src/ <- source js files
| |_ index.js <- entry point to JS (use requires here to pull in other files)
|_ Gruntfile.js <- grunt configuration
|_ package.json <- npm packages
Tests are run by mocha via grunt. All tests in test/ will be executed.
$ grunt test
This will start a server on port 3000 to serve index.html and a file watcher to re-build your JS when files change.
$ grunt server
$ grunt --help
This will list the available tasks.