Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 582 Bytes

2.3.2 使用 git cz 替代 git commit.md

File metadata and controls

30 lines (25 loc) · 582 Bytes

2.3.2 使用 git cz 替代 git commit

看到 vue 源码中使用的

"scripts": {
  commit": "git-cz"
},
"devDependencies": {
  ...
  "commitizen": "^2.9.6",
  "conventional-changelog": "^1.1.3",
  "cz-conventional-changelog": "^2.0.0",
},
"config": {
  "commitizen": {
    "path": "./node_modules/cz-conventional-changelog"
  }
}

install

npm install --save-dev cz-conventional-changelog

参考