generator-nmp

3.6.1 • Public • Published

generator-nmp Build Status

Note: this project was originally forked from Sindre Sorhus' generator-nm module. In contrast, it provides baked in prettier support.

Scaffold out a node module

Optionally with a CLI.

Install

$ npm install --global yo generator-nmp

Usage

With yo:

$ yo nmp

There are multiple command-line options available:

$ yo nmp --help

  Usage:
    yo nmp [options]

  Options:
    --help          # Print the generator's options and usage
    --skip-cache    # Do not remember prompt answers                      Default: false
    --skip-install  # Do not automatically install dependencies           Default: false
    --org           # Publish to a GitHub organization account
    --cli           # Add a CLI
    --coverage      # Add code coverage with nyc
    --codecov       # Upload coverage to codecov.io (implies --coverage)

The --org option takes a string value (i.e. --org=avajs). All others are boolean flags and can be negated with the no prefix (i.e. --no-codecov). You will be prompted for any options not passed on the command-line.

Tip

Use chalk if you want colors in your CLI.

License

MIT © Sindre Sorhus

Package Sidebar

Install

npm i generator-nmp

Weekly Downloads

1

Version

3.6.1

License

MIT

Unpacked Size

12.1 kB

Total Files

17

Last publish

Collaborators

  • maxrimue