npm-pkg-gen

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) ![ESLint](https://img.shields.io/badge/eslint-3A33D1?style=for-the-badge&logo=eslint&logoColor=white) ![Github Actions](https://img.shields.io/badge/


Keywords
scaffolding, utility, scaffold-generator, npm-package
License
MIT
Install
npm install npm-pkg-gen@1.0.0

Documentation

npm-pkg-gen

License: MIT ESLint Github Actions

  • Scaffolds an npm package with a single command

terminalizer demo

Installation

Install npm-pkg-gen with npm

npm install -g npm-pkg-gen

Or with Yarn, if you prefer that:

yarn global add npm-pkg-gen

Usage

To scaffold a package:

npg <package-name>

NOTE: You must make sure that the package name you've provided is available on the npm registry. If the package name you've provided is taken, you won't immediately get an error, but your CI job will fail later.

Once the package has been scaffolded, you need add a Github remote repo. Then, you need to create two Github repo secrets to complete the configuration:

  1. GH_TOKEN – This is supposed to contain a Github Personal Access Token. Here's how you can make one. Make sure to make it permissive enough (might as well check all the boxes if you are unsure).
  2. NPM_TOKEN – This one is supposed to contain an npm automation token. Check out this guide to know how to make one.

NOTE: Whenever you make a commit, you must use git cz instead of git commit.

License

MIT