standards-cli 1.0.6 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -6
- package/templates/commitlint/config.cjs +23 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "standards-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "一键初始化前端项目提交规范链路(cz-git + commitlint + husky + lint-staged)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -47,11 +47,6 @@
|
|
|
47
47
|
"path": "cz-git"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
"pnpm": {
|
|
51
|
-
"overrides": {
|
|
52
|
-
"string-width": "^7.0.0"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
50
|
"devDependencies": {
|
|
56
51
|
"@commitlint/cli": "^20.3.1",
|
|
57
52
|
"@commitlint/config-conventional": "^20.3.1",
|
|
@@ -1,17 +1,31 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
extends: ["@commitlint/config-conventional"],
|
|
3
3
|
rules: {
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
"type-enum": [
|
|
5
|
+
2,
|
|
6
|
+
"always",
|
|
7
|
+
[
|
|
8
|
+
"feat",
|
|
9
|
+
"fix",
|
|
10
|
+
"docs",
|
|
11
|
+
"style",
|
|
12
|
+
"refactor",
|
|
13
|
+
"perf",
|
|
14
|
+
"test",
|
|
15
|
+
"build",
|
|
16
|
+
"ci",
|
|
17
|
+
"chore",
|
|
18
|
+
"revert",
|
|
19
|
+
],
|
|
20
|
+
],
|
|
7
21
|
"subject-empty": [2, "never"],
|
|
8
22
|
"subject-max-length": [2, "always", 72],
|
|
9
23
|
},
|
|
10
24
|
prompt: {
|
|
11
25
|
messages: {
|
|
12
26
|
type: "选择你要提交的类型:",
|
|
13
|
-
|
|
14
|
-
subject: "
|
|
27
|
+
customScope: "输入 scope (可选,如: login, auth):",
|
|
28
|
+
subject: "输入简短描述:",
|
|
15
29
|
confirmCommit: "确认提交?",
|
|
16
30
|
},
|
|
17
31
|
types: [
|
|
@@ -22,16 +36,13 @@ module.exports = {
|
|
|
22
36
|
{ value: "refactor", name: "refactor: 重构" },
|
|
23
37
|
{ value: "perf", name: "perf: 性能优化" },
|
|
24
38
|
{ value: "test", name: "test: 测试相关" },
|
|
25
|
-
{ value: "build", name: "build:
|
|
26
|
-
{ value: "ci", name: "ci: CI
|
|
39
|
+
{ value: "build", name: "build: 构建系统" },
|
|
40
|
+
{ value: "ci", name: "ci: CI 配置" },
|
|
27
41
|
{ value: "chore", name: "chore: 其他杂项" },
|
|
28
42
|
{ value: "revert", name: "revert: 回滚提交" },
|
|
29
43
|
],
|
|
30
44
|
useEmoji: false,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
scopeEnumSeparator: ",",
|
|
34
|
-
allowCustomScopes: true,
|
|
35
|
-
allowEmptyScopes: false,
|
|
45
|
+
skipQuestions: ["scope", "body", "breaking", "breakingBody", "footer", "footerPrefix"],
|
|
46
|
+
defaultScope: "___CUSTOM___:",
|
|
36
47
|
},
|
|
37
48
|
};
|