CommonJS Generator
Create a CommonJS module with Yeoman, including nodeunit unit tests.
This generator is based of
grunt-init-commonjs, authored by the
magnificient GruntJS team.
Maintained by Addy Osmani.
Installation
If you haven't already done so, install Yeoman.
Once Yeoman is installed, install this generator via npm install -g generator-commonjs
.
Usage
At the command-line, cd into an empty directory, run this command and follow the prompts.
yo commonjs
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.
License
MIT License