generator-node-mocha

A node generator for Yeoman with Mocha unit tests

Usage no npm install needed!

<script type="module">
  import generatorNodeMocha from 'https://cdn.skypack.dev/generator-node-mocha';
</script>

README

Node-Mocha Generator Build Status

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

NPM

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.

License

MIT License