npm.io
1.1.0 • Published 6 years agoCLI

node-init-util

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

  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

Keywords