🔧 工具: 集成 cz-customizable 依赖
This commit is contained in:
parent
97e06993b6
commit
0b79aa072b
30
.cz-config.js
Normal file
30
.cz-config.js
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
"use strict";
|
||||||
|
module.exports = {
|
||||||
|
types: [
|
||||||
|
{ value: "✨ 特性", name: "特性: 一个新的特性" },
|
||||||
|
{ value: "🐛 修复", name: "修复: 修复一个Bug" },
|
||||||
|
{ value: "📝 文档", name: "文档: 变更的只有文档" },
|
||||||
|
{ value: "💄 格式", name: "格式: 空格, 分号等格式修复" },
|
||||||
|
{ value: "♻️ 重构", name: "重构: 代码重构,注意和特性、修复区分开" },
|
||||||
|
{ value: "⚡️ 性能", name: "性能: 提升性能" },
|
||||||
|
{ value: "✅ 测试", name: "测试: 添加一个测试" },
|
||||||
|
{ value: "🔧 工具", name: "工具: 开发工具变动(构建、脚手架工具等)" },
|
||||||
|
{ value: "⏪ 回滚", name: "回滚: 代码回退" },
|
||||||
|
],
|
||||||
|
scopes: [
|
||||||
|
{ name: "component" },
|
||||||
|
],
|
||||||
|
messages: {
|
||||||
|
type: "选择一种你的提交类型:",
|
||||||
|
scope: "选择一个scope (可选):",
|
||||||
|
customScope: "Denote the SCOPE of this change:",
|
||||||
|
subject: "短说明:\n",
|
||||||
|
body: '长说明,使用"|"换行(可选):\n',
|
||||||
|
breaking: "非兼容性说明 (可选):\n",
|
||||||
|
footer: "关联关闭的issue,例如:#31, #34(可选):\n",
|
||||||
|
confirmCommit: "确定提交说明?",
|
||||||
|
},
|
||||||
|
allowCustomScopes: true,
|
||||||
|
allowBreakingChanges: ["特性", "修复"],
|
||||||
|
subjectLimit: 100,
|
||||||
|
};
|
@ -1,21 +1,3 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ["@commitlint/config-conventional"],
|
extends: ["cz"],
|
||||||
rules: {
|
|
||||||
"type-enum": [2,
|
|
||||||
"always",
|
|
||||||
[
|
|
||||||
'build',
|
|
||||||
'chore',
|
|
||||||
'ci',
|
|
||||||
'docs',
|
|
||||||
'feat',
|
|
||||||
'fix',
|
|
||||||
'perf',
|
|
||||||
'refactor',
|
|
||||||
'revert',
|
|
||||||
'style',
|
|
||||||
'test'
|
|
||||||
]
|
|
||||||
],
|
|
||||||
},
|
|
||||||
};
|
};
|
@ -33,6 +33,8 @@
|
|||||||
"@typescript-eslint/parser": "^5.8.0",
|
"@typescript-eslint/parser": "^5.8.0",
|
||||||
"commitizen": "^4.2.4",
|
"commitizen": "^4.2.4",
|
||||||
"cz-conventional-changelog": "^3.3.0",
|
"cz-conventional-changelog": "^3.3.0",
|
||||||
|
"commitlint-config-cz": "^0.13.3",
|
||||||
|
"cz-customizable": "^6.3.0",
|
||||||
"eslint": "^8.5.0",
|
"eslint": "^8.5.0",
|
||||||
"eslint-config-prettier": "^8.3.0",
|
"eslint-config-prettier": "^8.3.0",
|
||||||
"eslint-plugin-prettier": "^4.0.0",
|
"eslint-plugin-prettier": "^4.0.0",
|
||||||
@ -42,7 +44,7 @@
|
|||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"commitizen": {
|
"commitizen": {
|
||||||
"path": "./node_modules/cz-conventional-changelog"
|
"path": "node_modules/cz-customizable"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
|
@ -12,7 +12,9 @@ importers:
|
|||||||
'@typescript-eslint/eslint-plugin': ^5.8.0
|
'@typescript-eslint/eslint-plugin': ^5.8.0
|
||||||
'@typescript-eslint/parser': ^5.8.0
|
'@typescript-eslint/parser': ^5.8.0
|
||||||
commitizen: ^4.2.4
|
commitizen: ^4.2.4
|
||||||
|
commitlint-config-cz: ^0.13.3
|
||||||
cz-conventional-changelog: ^3.3.0
|
cz-conventional-changelog: ^3.3.0
|
||||||
|
cz-customizable: ^6.3.0
|
||||||
eslint: ^8.5.0
|
eslint: ^8.5.0
|
||||||
eslint-config-prettier: ^8.3.0
|
eslint-config-prettier: ^8.3.0
|
||||||
eslint-plugin-prettier: ^4.0.0
|
eslint-plugin-prettier: ^4.0.0
|
||||||
@ -31,7 +33,9 @@ importers:
|
|||||||
'@typescript-eslint/eslint-plugin': 5.17.0_d811b3e9fac539787959b39b978df707
|
'@typescript-eslint/eslint-plugin': 5.17.0_d811b3e9fac539787959b39b978df707
|
||||||
'@typescript-eslint/parser': 5.17.0_eslint@8.12.0
|
'@typescript-eslint/parser': 5.17.0_eslint@8.12.0
|
||||||
commitizen: 4.2.4
|
commitizen: 4.2.4
|
||||||
|
commitlint-config-cz: 0.13.3
|
||||||
cz-conventional-changelog: 3.3.0
|
cz-conventional-changelog: 3.3.0
|
||||||
|
cz-customizable: 6.3.0
|
||||||
eslint: 8.12.0
|
eslint: 8.12.0
|
||||||
eslint-config-prettier: 8.5.0_eslint@8.12.0
|
eslint-config-prettier: 8.5.0_eslint@8.12.0
|
||||||
eslint-plugin-prettier: 4.0.0_f2c91d0f54113167d2bd9214a5ab5a36
|
eslint-plugin-prettier: 4.0.0_f2c91d0f54113167d2bd9214a5ab5a36
|
||||||
@ -2098,6 +2102,11 @@ packages:
|
|||||||
color-convert: 2.0.1
|
color-convert: 2.0.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/app-root-path/3.0.0:
|
||||||
|
resolution: {integrity: sha512-qMcx+Gy2UZynHjOHOIXPNvpf+9cjvk3cWrBBK7zg4gH9+clobJRb9NGzcT7mQTcV/6Gm/1WelUtqxVXnNlrwcw==}
|
||||||
|
engines: {node: '>= 6.0.0'}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/arg/4.1.3:
|
/arg/4.1.3:
|
||||||
resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==}
|
resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==}
|
||||||
dev: true
|
dev: true
|
||||||
@ -2322,6 +2331,13 @@ packages:
|
|||||||
- '@swc/wasm'
|
- '@swc/wasm'
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/commitlint-config-cz/0.13.3:
|
||||||
|
resolution: {integrity: sha512-6LmCvGiFDTVSmLF0mzVVp1etMM8lAqLmPRlU7Oml1J8J9oOLadf+2g4uMTchdxOvvYLgll99SESFUHgmc6oATA==}
|
||||||
|
dependencies:
|
||||||
|
app-root-path: 3.0.0
|
||||||
|
lodash.clonedeep: 4.5.0
|
||||||
|
dev: true
|
||||||
|
|
||||||
/compare-func/2.0.0:
|
/compare-func/2.0.0:
|
||||||
resolution: {integrity: sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==}
|
resolution: {integrity: sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==}
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -2468,6 +2484,18 @@ packages:
|
|||||||
- '@swc/wasm'
|
- '@swc/wasm'
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/cz-customizable/6.3.0:
|
||||||
|
resolution: {integrity: sha512-MWGmWa45v4Ds3NJNNwQc3GCFdjtH3k4ypDWoWkwultMVLf7aOHR9VaXGYGZHLOQS4sMfbkBSjNUYoXCSmLuRSA==}
|
||||||
|
hasBin: true
|
||||||
|
dependencies:
|
||||||
|
editor: 1.0.0
|
||||||
|
find-config: 1.0.0
|
||||||
|
inquirer: 6.5.2
|
||||||
|
lodash: 4.17.21
|
||||||
|
temp: 0.9.4
|
||||||
|
word-wrap: 1.2.3
|
||||||
|
dev: true
|
||||||
|
|
||||||
/dargs/7.0.0:
|
/dargs/7.0.0:
|
||||||
resolution: {integrity: sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg==}
|
resolution: {integrity: sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
@ -2564,6 +2592,10 @@ packages:
|
|||||||
is-obj: 2.0.0
|
is-obj: 2.0.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/editor/1.0.0:
|
||||||
|
resolution: {integrity: sha1-YMf4e9YrzGqJT6jM1q+3gjok90I=}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/electron-to-chromium/1.4.103:
|
/electron-to-chromium/1.4.103:
|
||||||
resolution: {integrity: sha512-c/uKWR1Z/W30Wy/sx3dkZoj4BijbXX85QKWu9jJfjho3LBAXNEGAEW3oWiGb+dotA6C6BzCTxL2/aLes7jlUeg==}
|
resolution: {integrity: sha512-c/uKWR1Z/W30Wy/sx3dkZoj4BijbXX85QKWu9jJfjho3LBAXNEGAEW3oWiGb+dotA6C6BzCTxL2/aLes7jlUeg==}
|
||||||
dev: true
|
dev: true
|
||||||
@ -3086,6 +3118,13 @@ packages:
|
|||||||
to-regex-range: 5.0.1
|
to-regex-range: 5.0.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/find-config/1.0.0:
|
||||||
|
resolution: {integrity: sha1-6vorm8B/qckOmgw++c7PHMgA9TA=}
|
||||||
|
engines: {node: '>= 0.12'}
|
||||||
|
dependencies:
|
||||||
|
user-home: 2.0.0
|
||||||
|
dev: true
|
||||||
|
|
||||||
/find-node-modules/2.1.3:
|
/find-node-modules/2.1.3:
|
||||||
resolution: {integrity: sha512-UC2I2+nx1ZuOBclWVNdcnbDR5dlrOdVb7xNjmT/lHE+LsgztWks3dG7boJ37yTS/venXw84B/mAW9uHVoC5QRg==}
|
resolution: {integrity: sha512-UC2I2+nx1ZuOBclWVNdcnbDR5dlrOdVb7xNjmT/lHE+LsgztWks3dG7boJ37yTS/venXw84B/mAW9uHVoC5QRg==}
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -3641,6 +3680,10 @@ packages:
|
|||||||
p-locate: 5.0.0
|
p-locate: 5.0.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/lodash.clonedeep/4.5.0:
|
||||||
|
resolution: {integrity: sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/lodash.debounce/4.0.8:
|
/lodash.debounce/4.0.8:
|
||||||
resolution: {integrity: sha1-gteb/zCmfEAF/9XiUVMArZyk168=}
|
resolution: {integrity: sha1-gteb/zCmfEAF/9XiUVMArZyk168=}
|
||||||
dev: true
|
dev: true
|
||||||
@ -3797,6 +3840,17 @@ packages:
|
|||||||
resolution: {integrity: sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==}
|
resolution: {integrity: sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/minimist/1.2.6:
|
||||||
|
resolution: {integrity: sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==}
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/mkdirp/0.5.6:
|
||||||
|
resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==}
|
||||||
|
hasBin: true
|
||||||
|
dependencies:
|
||||||
|
minimist: 1.2.6
|
||||||
|
dev: true
|
||||||
|
|
||||||
/ms/2.1.2:
|
/ms/2.1.2:
|
||||||
resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
|
resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
|
||||||
dev: true
|
dev: true
|
||||||
@ -3903,6 +3957,11 @@ packages:
|
|||||||
word-wrap: 1.2.3
|
word-wrap: 1.2.3
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/os-homedir/1.0.2:
|
||||||
|
resolution: {integrity: sha1-/7xJiDNuDoM94MFox+8VISGqf7M=}
|
||||||
|
engines: {node: '>=0.10.0'}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/os-tmpdir/1.0.2:
|
/os-tmpdir/1.0.2:
|
||||||
resolution: {integrity: sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=}
|
resolution: {integrity: sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=}
|
||||||
engines: {node: '>=0.10.0'}
|
engines: {node: '>=0.10.0'}
|
||||||
@ -4231,6 +4290,13 @@ packages:
|
|||||||
engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
|
engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/rimraf/2.6.3:
|
||||||
|
resolution: {integrity: sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==}
|
||||||
|
hasBin: true
|
||||||
|
dependencies:
|
||||||
|
glob: 7.2.0
|
||||||
|
dev: true
|
||||||
|
|
||||||
/rimraf/3.0.2:
|
/rimraf/3.0.2:
|
||||||
resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==}
|
resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
@ -4476,6 +4542,14 @@ packages:
|
|||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/temp/0.9.4:
|
||||||
|
resolution: {integrity: sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==}
|
||||||
|
engines: {node: '>=6.0.0'}
|
||||||
|
dependencies:
|
||||||
|
mkdirp: 0.5.6
|
||||||
|
rimraf: 2.6.3
|
||||||
|
dev: true
|
||||||
|
|
||||||
/text-extensions/1.9.0:
|
/text-extensions/1.9.0:
|
||||||
resolution: {integrity: sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==}
|
resolution: {integrity: sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==}
|
||||||
engines: {node: '>=0.10'}
|
engines: {node: '>=0.10'}
|
||||||
@ -4643,6 +4717,13 @@ packages:
|
|||||||
punycode: 2.1.1
|
punycode: 2.1.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/user-home/2.0.0:
|
||||||
|
resolution: {integrity: sha1-nHC/2Babwdy/SGBODwS4tJzenp8=}
|
||||||
|
engines: {node: '>=0.10.0'}
|
||||||
|
dependencies:
|
||||||
|
os-homedir: 1.0.2
|
||||||
|
dev: true
|
||||||
|
|
||||||
/util-deprecate/1.0.2:
|
/util-deprecate/1.0.2:
|
||||||
resolution: {integrity: sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=}
|
resolution: {integrity: sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=}
|
||||||
dev: true
|
dev: true
|
||||||
|
Loading…
Reference in New Issue
Block a user