generator-jt-nm

Similar to `nm` generator, but tweaked to my preferences

Usage no npm install needed!

<script type="module">
  import generatorJtNm from 'https://cdn.skypack.dev/generator-jt-nm';
</script>

README

generator-jt-nm Build Status

A fork of the node module scaffolding by @sindresorhus. It changes preferred indentation to spaces from tabs, and moves tests to a subdirectory. It adds istanbul for coverage (with coveralls reporting), and JSCS for style enforcement. It adds a bunch of badges to the readme (nodei.co, coveralls, david-dm, and codeclimate).

Build Targets in Generated Project

  • npm test : run tests with coverage, then lint and check styles
  • npm run test : watch for changes and rerun the tests when detected.
  • npm run lint : run just the linter
  • npm run style : run just the style check
  • npm run debug : run tests (no coverage, no lint/style checks). Especially helpful if your stacktraces have mangled line numbers

Optionally with a CLI.

Install

$ npm install --global generator-jt-nm

Usage

With yo:

$ yo jt-nm

Tip

Browse the source of my module and the upstream one by @sindresorhus. It's incredibly easy to fork and tweak things to your liking.

License

MIT

Original Source © Sindre Sorhus

Modifications © James Talmage