0.0.4 • Published 10 months ago

test-husky-cz-np v0.0.4

Weekly downloads
-
License
-
Repository
github
Last release
10 months ago

test-husky-cz-np

  1. 删除 package.json 的 private 字段

  2. 安装 husky

    npm install husky --save-dev
  3. 安装 commitlint

    npm install @commitlint/cli --save-dev
    npm install @commitlint/config-conventional --save-dev
  4. 然后通过以下命令启用 git hooks

    npx husky install
  5. 接着添加 commit-msg 的 git hook

    npx husky add .husky/commit-msg 'npx commitlint --edit $1'
  6. 然后创建 .commitlintrc.json 文件并且添加以下配置

    {
      "extends": ["@commitlint/config-conventional"]
    }
0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

1 year ago