@yokots/git-hooks
git-hooks
Last updated 6 months ago by yokots .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @yokots/git-hooks 
SYNC missed versions from official npm registry.

USAGE

  • npm i @yokots/git-hooks -D

  • Add the following fields to your package.json

    {
      "husky": {
        "hooks": {
          "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
          "pre-commit": "lint-staged",
          "prepare-commit-msg": "exec < /dev/tty && git cz --hook || true"
        }
      },
      "commitlint": {
        "extends": ["@commitlint/config-conventional"]
      },
      "lint-staged": {
        "*.{css,scss}": ["stylelint --fix", "git add"],
        "*.ts": ["tslint --fix", "git add"]
      },
      "config": {
        "commitizen": {
          "path": "cz-conventional-changelog"
        }
      }
    }
    
  • If you use in angular project, ng add @yokots/git-hooks

Resources

Current Tags

  • 0.0.1-beta                                ...           beta (6 months ago)
  • 0.2.1                                ...           latest (6 months ago)

4 Versions

  • 0.2.1                                ...           6 months ago
  • 0.2.0                                ...           6 months ago
  • 0.1.0                                ...           6 months ago
  • 0.0.1-beta                                ...           6 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |