集成 commitizen 提交规范

This commit is contained in:
就眠儀式 2021-12-25 14:46:25 +08:00
parent e1a5404263
commit fb8b6f3db1

View File

@ -27,7 +27,8 @@
"build:types": "rimraf types && tsc -d",
"build:example": "vite build example",
"lint:eslint": "eslint \"src/**/*.{vue,ts,tsx}\" --fix",
"lint:prettier": "prettier --write \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\""
"lint:prettier": "prettier --write \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"",
"commit": "cz"
},
"peerDependencies": {
"vue": "^3.2.26",
@ -38,6 +39,7 @@
"@layui/icons-vue": "^1.0.2",
"@layui/layer-vue": "^1.2.2",
"async-validator": "^4.0.7",
"commitizen": "^4.2.4",
"evtd": "^0.2.3",
"vue": "^3.2.26"
},
@ -54,11 +56,12 @@
"@vitejs/plugin-vue": "^1.9.3",
"@vue/compiler-sfc": "^3.2.26",
"@vue/server-renderer": "^3.2.26",
"cz-conventional-changelog": "3.3.0",
"escape-html": "^1.0.3",
"eslint": "^8.5.0",
"eslint-plugin-vue": "^8.2.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.2.0",
"less": "^4.1.2",
"markdown-it-container": "^3.0.0",
"prettier": "^2.5.1",
@ -77,5 +80,10 @@
"current node",
"last 2 versions and > 2%",
"ie > 10"
]
],
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}