Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-test into dev
  • Loading branch information
ruan-cat committed Oct 13, 2024
2 parents 0b4e701 + 8ef4446 commit 69b57cc
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 2 deletions.
40 changes: 40 additions & 0 deletions .cz-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
"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: "leetcode" }, { name: "javascript" }, { name: "typescript" }, { name: "Vue" }, { name: "node" }],
// it needs to match the value for field type. Eg.: 'fix'
/* scopeOverrides: {
fix: [
{name: 'merge'},
{name: 'style'},
{name: 'e2eTest'},
{name: 'unitTest'}
]
}, */
// override the messages, defaults are as follows
messages: {
type: "选择一种你的提交类型:",
scope: "选择一个scope (可选):",
// used if allowCustomScopes is true
customScope: "Denote the SCOPE of this change:",
subject: "短说明:\n",
body: '长说明,使用"|"换行(可选):\n',
breaking: "非兼容性说明 (可选):\n",
footer: "关联关闭的issue,例如:#31, #34(可选):\n",
confirmCommit: "确定提交说明?(yes/no)",
},
allowCustomScopes: true,
allowBreakingChanges: ["特性", "修复"],
// limit subject length
subjectLimit: 100,
};
5 changes: 4 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ link-workspace-packages=deep
# registry=https://registry.npmjs.org/

# https://blog.csdn.net/qq_41499782/article/details/128723054
public-hoist-pattern[]=*vue*
public-hoist-pattern[]=*vue*

# https://juejin.cn/post/7215608036394827836
ignore-workspace-root-check = true
4 changes: 4 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"use strict";
module.exports = {
extends: ["cz"],
};
17 changes: 16 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"scripts": {
"preinstall": "npx only-allow pnpm && npm run corepack:pnpm",
"corepack:pnpm": "corepack enable && corepack install",
"commit": "git-cz",
"git:fetch": "git fetch -p",
"git:dev-2-main": "git rebase dev main",
"git:main-2-dev": "git rebase main dev",
Expand Down Expand Up @@ -43,6 +44,8 @@
"devDependencies": {
"@antfu/eslint-config": "^2.27.3",
"@changesets/cli": "^2.27.9",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@eslint/config-inspector": "^0.5.4",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.12.0",
Expand All @@ -53,8 +56,14 @@
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.16.11",
"@vuepress/bundler-vite": "2.0.0-rc.18",
"commitizen": "^4.3.1",
"commitlint-config-cz": "^0.13.3",
"cpx2": "^7.0.2",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"cz-customizable": "^7.2.1",
"cz-git": "^1.10.1",
"czg": "^1.10.1",
"esbuild": "^0.23.1",
"esbuild-register": "^3.6.0",
"eslint": "^9.12.0",
Expand Down Expand Up @@ -90,5 +99,11 @@
"@dotenvx/dotenvx": "^1.17.0",
"consola": "^3.2.3",
"lodash-es": "catalog:"
},
"config": {
"commitizen": {
"notuse_path_": "./node_modules/cz-conventional-changelog",
"path": "./node_modules/cz-customizable"
}
}
}
}
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 综合性的单仓

0 comments on commit 69b57cc

Please sign in to comment.