1.1.0 • Published 4 years ago

node-init-util v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

node-init-util

Installation

npm install node-init-util -g

Usage

node-init [--type puppeteer]

What this utility do

  1. if package.json not exist, yarn init -y
  2. if .git not exist, git init
  3. if .gitignore not exit, create
  4. yarn add eslint husky lint-staged -D
  5. if .eslintrc.js, create
  6. 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"
    	]
      }
  7. create lib/util.js if necessary