0.0.1 • Published 6 years ago

gin-npg v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

npg

npg -> node package generator

npg is a command line tool to generate a node package with a basic template.

Screenshot

npg

Installation

npm install gin-npg -g

Usage

$ 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

Structure

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 build src to lib.
  • eslint rules were base on airbnb, you can run npm run lint to check your code.

License

MIT