An opinionated npm package bootstrapper
prettier
pretty-quick
andhusky
eslint
with:eslint:recommended
eslint-plugin-prettier
eslint-plugin-jest
babel
withbabel-preset-env
jest
semantic-release
First, install Yeoman and generator-npm-package using npm (we assume you have pre-installed node.js).
yarn global add yo @azz/generator-npm-package
yo @azz/npm-package
$ yo @azz/npm-package
_ __ _ __ _ __ ___ _ __ __ _ ___| | ____ _ __ _ ___
| '_ \| '_ \| '_ ` _ \ _____| '_ \ / _` |/ __| |/ / _` |/ _` |/ _ \
| | | | |_) | | | | | |_____| |_) | (_| | (__| < (_| | (_| | __/
|_| |_| .__/|_| |_| |_| | .__/ \__,_|\___|_|\_\__,_|\__, |\___|
|_| |_| |___/
? package name? my-pkg
? package description? My package description
? full name (First Last)? John Citizen
? GitHub username or organization? jcitizen
$ tree -I 'node_modules|.git' -a
.
βββ .gitignore
βββ .prettierignore
βββ .travis.yml
βββ LICENSE
βββ README.md
βββ dist
β βββ index.js
βββ package.json
βββ src
β βββ index.js
βββ yarn.lock