Create a node.js module with Yeoman, including Mocha unit tests.
This generator is a fork of generator-node by the Yeoman team supporting Mocha unit tests instead of NodeUnit.
Original Author: Addy Osmani
Author: @MrDHat with generous contributions from @thanpolas
Installation
Install the generator by running: npm install -g generator-node-mocha
.
Usage
At the command-line, cd into an empty directory, run this command and follow the prompts.
yo node-mocha
Note that this template will generate files in the current directory, so be sure to change to a new directory first if you don't want to overwrite existing files.