Licence
MIT
Version
1.1.0
Deps
3
Size
20 kB
Vulns
0
Weekly
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