特性: 集成 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

@ -50,4 +50,5 @@ module.exports = {
'vue/require-default-prop': 'off',
'vue/script-setup-uses-vars': 'off'
}
}
}

View File

@ -9,4 +9,4 @@
## 跟进
后续编辑,附上对应的 Pull Request 地址,可以用 `- [ ] some task` 的方式。
后续编辑,附上对应的 Pull Request 地址,可以用 `- [ ] some task` 的方式。

2
.gitignore vendored
View File

@ -8,4 +8,4 @@ package-lock.json
*.suo
*.ntvs*
*.njsproj
*.sln
*.sln

View File

@ -2,4 +2,4 @@
. "$(dirname "$0")/_/husky.sh"
npm run lint:prettier
npx --no -- commitlint --edit $1
npx --no -- commitlint --edit $1

View File

@ -2,4 +2,4 @@
"semi": true,
"singleQuote": false,
"tabWidth": 2
}
}

View File

@ -17,4 +17,4 @@ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -75,4 +75,4 @@ This project follows the [all-contributors](https://github.com/layui-vue/layui-v
## Licence
Layui vue is licensed under the [MIT license](https://opensource.org/licenses/MIT).
Layui vue is licensed under the [MIT license](https://opensource.org/licenses/MIT).

View File

@ -75,4 +75,4 @@ This project follows the [all-contributors](https://github.com/layui-vue/layui-v
## Licence
Layui vue is licensed under the [MIT license](https://opensource.org/licenses/MIT).
Layui vue is licensed under the [MIT license](https://opensource.org/licenses/MIT).

View File

@ -1,3 +1,3 @@
module.exports = {
extends: ["cz"],
};
};

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:*",
@ -52,4 +52,4 @@
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}
}

View File

@ -4936,4 +4936,4 @@ packages:
resolution: {integrity: sha512-G/AdOadiZhnJp0jXCaBQU449W2h716OW/EoXeYkCytxKL06X1WCXB4DZpp8TpZ8eyIJVS1cw4lrlkkSYU21cDw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/prettier/-/prettier-2.6.0.tgz}
name: '@types/prettier'
version: 2.6.0
dev: true
dev: true

View File

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