refactor: commit message约束
This commit is contained in:
parent
5a782a8717
commit
508e3d63e4
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
pnpm exec commitlint --edit "$1"
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
# pnpm lint
|
|
@ -0,0 +1 @@
|
|||
module.exports = {extends: ['@commitlint/config-angular']}
|
|
@ -9,7 +9,8 @@
|
|||
"main": "dist/electron/main/index.js",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc && vite build && electron-builder"
|
||||
"build": "tsc && vite build && electron-builder",
|
||||
"commit": "cz"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.17.0"
|
||||
|
@ -19,6 +20,9 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@ant-design/icons": "^4.7.0",
|
||||
"@commitlint/cli": "^17.0.3",
|
||||
"@commitlint/config-angular": "^17.0.3",
|
||||
"@commitlint/config-conventional": "^17.0.3",
|
||||
"@types/fs-extra": "^9.0.13",
|
||||
"@types/node": "^18.0.3",
|
||||
"@types/react": "^18.0.12",
|
||||
|
@ -26,10 +30,13 @@
|
|||
"@vitejs/plugin-react": "^1.3.2",
|
||||
"ahooks": "^3.5.2",
|
||||
"antd": "^4.21.5",
|
||||
"commitizen": "^4.2.4",
|
||||
"cz-conventional-changelog": "^3.3.0",
|
||||
"dayjs": "^1.11.3",
|
||||
"electron": "^19.0.3",
|
||||
"electron-builder": "^23.0.3",
|
||||
"fs-extra": "^10.1.0",
|
||||
"husky": "^8.0.1",
|
||||
"react": "^18.1.0",
|
||||
"react-dom": "^18.1.0",
|
||||
"react-router-dom": "6",
|
||||
|
|
Loading…
Reference in New Issue