node-init-util
v1.1.0
Published
Quick starter of NodeJS
Downloads
10
Maintainers
Readme
node-init-util
Installation
npm install node-init-util -g
Usage
node-init [--type puppeteer]
What this utility do
- if package.json not exist,
yarn init -y
- if .git not exist,
git init
- if .gitignore not exit, create
- yarn add eslint husky lint-staged -D
- if .eslintrc.js, create
- if package.json does not include husky or lint-staged configuration, add
"husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.js": [ "eslint --fix", "git add" ] }
- create lib/util.js if necessary