gccl

1.0.13 • Public • Published

gccl Build status

git commitizen & commitlint & lint-staged

Getting started

npm i gccl -D

# OR
yarn add gccl -D

Two things have been done

  1. It just install these devDependencies commitizencommitlintlint-staged in your project
  2. add the info in your package.json and create a commitlint.config.js in your project
    {
      ...
      "config": {
        "commitizen": {
          "path": "./node_modules/cz-conventional-changelog"
        }
      },
      "husky": {
        "hooks": {
          "pre-commit": "lint-staged",
          "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
        }
      },
      "lint-staged": {
       "*.{js,vue}": [
         "eslint --fix",
         "git add"
       ]
      }
    }

Package Sidebar

Install

npm i gccl

Weekly Downloads

0

Version

1.0.13

License

MIT

Unpacked Size

6.25 kB

Total Files

7

Last publish

Collaborators

  • leeray