1.1.0 • Published 5 years ago
node-init-util v1.1.0
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