This is a minimalistic boilerplate for a browser-based CoffeeScript project that is tested with Mocha.
The Mocha tests use the Chai assertion library for browser compatibility.
The CoffeeScript coffee
executable is required for source and test compilation. Once the CoffeeScript is compiled, CoffeeScript is not required for the browser-based tests, which are run simply by opening test/index.html
with a modern browser.
- Chai: 1.2.0
- CoffeeScript: not included
- jQuery: 1.8.2
- Mocha: 1.6.0
To use this boilerplate to start your own project:
- Install CoffeeScript per the official instructions.
rm -rf .git
- Replace
example.coffee
in bothtest
andsrc
with your own code. make
to compile source and test CoffeeScript, or elsemake watch
andmake test-watch
for automatic compilation- Edit
Readme.md
andLICENSE
, replacing this project's details with your own.