generator-nm-typescript

6.0.2 • Public • Published

generator-nm-typescript Node.js CI

Scaffold out a node module

screenshot

Features and differences of this fork (original generator nm):

  • Fully reworked to TypeScript (AVA + TypeScript + ts-node)
  • Use Yarn
  • Generate a module OR a CLI (not both merged)
  • Replaced Travis with Github Actions
  • Keep Yarn lock files
  • package.json engine to node >=10
  • Added Prettier configuration
  • Added lots of badges at the top of the README
  • Added Related section at the end of the README
  • Added README screenshot
  • Made LICENSE and README uppercase
  • CLI mode add update-notifier
  • CLI mode GitHub repo link in help message
  • CLI mode import package having package name without -cli and show it in the README Related section
  • Removed .editorconfig/.npmrc
  • Removed xo/nyc/codecov
  • Set full website URL instead of humanized

Generation examples

Install

$ yarn global add yo generator-nm-typescript

Usage

With yo:

$ yo nm-typescript

There are multiple command-line options available:

$ yo nm-typescript --help

  Usage:
    yo nm-typescript [options]

  Options:
    --help          # Print the generator's options and usage
    --cli           # Make a CLI
    --no-cli        # Make a module
    --skip-cache    # Do not remember prompt answers                      Default: false
    --skip-install  # Do not automatically install dependencies           Default: false

/generator-nm-typescript/

    Package Sidebar

    Install

    npm i generator-nm-typescript

    Weekly Downloads

    3

    Version

    6.0.2

    License

    MIT

    Unpacked Size

    104 kB

    Total Files

    23

    Last publish

    Collaborators

    • rigwild