npg
->node package generator
npg
is a command line tool to generate a node package with a basic template.
npm install gin-npg -g
$ npg -h
Usage: npg <command> [options]
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
init|i [name] generate a new node module
Your Node Package
├── README.md
├── .npmignore
├── .babelrc
├── .eslintrc.js
├── .gitignore
├── package.json
└── src
└── index.js
- all the source files of the package would be put in the
src
directory. - when you want to publish the package, run
npm run build
to buildsrc
tolib
. - eslint rules were base on
airbnb
, you can runnpm run lint
to check your code.
MIT