特性: 集成 custom commitlint 配置

This commit is contained in:
就眠儀式 2022-04-24 00:41:50 +08:00
parent 0b79aa072b
commit a737bdb08d
13 changed files with 24 additions and 22 deletions

View File

@ -1,15 +1,15 @@
"use strict";
module.exports = {
types: [
{ value: "✨ 特性", name: "特性: 一个新的特性" },
{ value: "🐛 修复", name: "修复: 修复一个Bug" },
{ value: "📝 文档", name: "文档: 变更的只有文档" },
{ value: "💄 格式", name: "格式: 空格, 分号等格式修复" },
{ value: "♻️ 重构", name: "重构: 代码重构,注意和特性、修复区分开" },
{ value: "⚡️ 性能", name: "性能: 提升性能" },
{ value: "✅ 测试", name: "测试: 添加一个测试" },
{ value: "🔧 工具", name: "工具: 开发工具变动(构建、脚手架工具等)" },
{ value: "⏪ 回滚", name: "回滚: 代码回退" },
{ value: "✨特性", name: "特性: 一个新的特性" },
{ value: "🐛修复", name: "修复: 修复一个Bug" },
{ value: "📝文档", name: "文档: 变更的只有文档" },
{ value: "💄格式", name: "格式: 空格, 分号等格式修复" },
{ value: "♻️重构", name: "重构: 代码重构,注意和特性、修复区分开" },
{ value: "⚡️性能", name: "性能: 提升性能" },
{ value: "✅测试", name: "测试: 添加一个测试" },
{ value: "🔧工具", name: "工具: 开发工具变动(构建、脚手架工具等)" },
{ value: "⏪回滚", name: "回滚: 代码回退" },
],
scopes: [
{ name: "component" },

View File

@ -51,3 +51,4 @@ module.exports = {
'vue/script-setup-uses-vars': 'off'
}
}

View File

@ -15,7 +15,7 @@
"lint:prettier": "prettier --write \"package/**/*.{vue,ts}\"",
"postinstall": "npm run build",
"prepare": "husky install",
"commit": "git-cz && git push"
"commit": "git add . && git-cz && git push"
},
"dependencies": {
"@layui/layui-vue": "workspace:*",

View File

@ -1,2 +1,3 @@
packages:
- package/*