easy-soft-develop 2.1.61 → 2.1.62

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 CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
2
3
  "name": "easy-soft-develop",
3
- "version": "2.1.61",
4
+ "version": "2.1.62",
4
5
  "description": "",
5
6
  "homepage": "https://github.com/kityandhero/easy-soft-develop#readme",
6
7
  "bugs": {
@@ -27,6 +28,8 @@
27
28
  ],
28
29
  "scripts": {
29
30
  "commitlint": "npx commitlint --edit",
31
+ "precommit": "npm run z:lint:staged:quiet",
32
+ "prepare": "pnpm changeset init && npm run z:husky:install && echo do other prepare work with here before run z:husky:install",
30
33
  "test:bin:check-all-package-version": "node ./bin/cli.js check-all-package-version",
31
34
  "test:bin:code": "node ./bin/cli.js code --dataPath ./develop/generatorCodeSource/code.json",
32
35
  "test:bin:create-assist-scripts": "node ./bin/cli.js create-assist-scripts",
@@ -45,9 +48,12 @@
45
48
  "z:change:npm:registry:npm": "nrm use npm",
46
49
  "z:check:all-package-version": "npx ncu",
47
50
  "prez:cz": "node ./bin/cli.js commit-refresh && npm run z:prettier:format:change && npm run z:tsc:build && git stage -A",
48
- "z:cz": "cz",
51
+ "z:cz": "git-cz",
49
52
  "postz:cz": "git push",
53
+ "z:husky:install": "npx husky install",
50
54
  "z:install": "pnpm install",
55
+ "z:lint:staged": "npx lint-staged",
56
+ "z:lint:staged:quiet": "npx lint-staged --quiet",
51
57
  "z:prettier:format:all": "npx prettier --write .",
52
58
  "z:prettier:format:change": "npx prettier --cache --write . && node ./bin/cli.js prompt --message \"format changed files complete\" --type success --blankLine",
53
59
  "z:publish:build": "npm run z:publish:patch:npm",
@@ -61,7 +67,7 @@
61
67
  "z:update:package-from-package": "npx ncu -u"
62
68
  },
63
69
  "dependencies": {
64
- "commander": "^11.1.0",
70
+ "commander": "^12.0.0",
65
71
  "download": "^8.0.0",
66
72
  "download-git-repo": "^3.0.2",
67
73
  "enquirer": "^2.4.1",
@@ -69,16 +75,17 @@
69
75
  "hpagent": "^1.2.0",
70
76
  "ping": "^0.4.4",
71
77
  "shelljs": "^0.8.5",
72
- "terminal-kit": "^3.0.1"
78
+ "terminal-kit": "^3.0.2"
73
79
  },
74
80
  "devDependencies": {
75
- "@commitlint/cli": "^18.4.4",
76
- "@commitlint/config-conventional": "^18.4.4",
77
- "@commitlint/config-pnpm-scopes": "^18.4.4",
78
- "@commitlint/cz-commitlint": "^18.4.4",
81
+ "@changesets/cli": "^2.27.1",
82
+ "@commitlint/cli": "^19.0.3",
83
+ "@commitlint/config-conventional": "^19.0.3",
84
+ "@commitlint/config-pnpm-scopes": "^19.0.0",
79
85
  "commitizen": "^4.3.0",
80
86
  "conventional-changelog-conventionalcommits": "^7.0.2",
81
- "eslint": "^8.56.0",
87
+ "cz-git": "^1.9.0",
88
+ "eslint": "^8.57.0",
82
89
  "eslint-config-prettier": "^9.1.0",
83
90
  "eslint-formatter-pretty": "^6.0.1",
84
91
  "eslint-import-resolver-typescript": "^3.6.1",
@@ -86,10 +93,10 @@
86
93
  "eslint-plugin-import": "^2.29.1",
87
94
  "eslint-plugin-prettier": "^5.1.3",
88
95
  "eslint-plugin-promise": "^6.1.1",
89
- "husky": "^8.0.3",
90
- "lint-staged": "^15.2.0",
91
- "npm-check-updates": "^16.14.12",
92
- "prettier": "^3.2.4",
93
- "prettier-plugin-packagejson": "^2.4.9"
96
+ "husky": "^9.0.11",
97
+ "lint-staged": "^15.2.2",
98
+ "npm-check-updates": "^16.14.15",
99
+ "prettier": "^3.2.5",
100
+ "prettier-plugin-packagejson": "^2.4.12"
94
101
  }
95
102
  }
@@ -138,7 +138,7 @@ function createHusky() {
138
138
  echo ---------------------
139
139
  echo exec husky commit-msg
140
140
 
141
- npx commitlint -e $HUSKY_GIT_PARAMS -V
141
+ npx commitlint -E $HUSKY_GIT_PARAMS -V
142
142
  `;
143
143
 
144
144
  writeFileSync(`./.husky/commit-msg`, commitMsg, { coverFile: true });
@@ -10,106 +10,78 @@ module.exports = {
10
10
  ],
11
11
  parserPreset: 'conventional-changelog-conventionalcommits',
12
12
  prompt: {
13
+ useEmoji: true,
14
+ customScopesAlias: '以上都不是?我要自定义',
15
+ emptyScopesAlias: '跳过',
16
+ emptyIssuePrefixAlias: '跳过',
17
+ customIssuePrefixAlias: '自定义前缀',
13
18
  messages: {
14
- skip: '[可跳过]',
15
- max: '[字数上限: %d]',
16
- min: '[字数下限: %d]',
17
- emptyWarning: '此为必填项目, 不能为空白',
18
- upperLimitWarning: '超过最大限制',
19
- lowerLimitWarning: '低于最小限制',
19
+ type: '择要提交的更改类型:',
20
+ scope: '此更改的范围是什么(例如:组件或文件名):',
21
+ customScope: '此更改的范围是什么(例如:组件或文件名):',
22
+ subject: '用简短的祈使语句描述变化:\n',
23
+ body: '对变更提供更详细的描述 (可空). "|" 为多行间隔符:\n',
24
+ breaking: '有什么破坏性的变化吗 (可空). "|" 为多行间隔符:\n',
25
+ footerPrefixesSelect: '通过下列选择变更列表的ISSUES类型 (可空):',
26
+ customFooterPrefix: '输入 ISSUES 前缀:',
27
+ footer: '列出此更改引起的任何 ISSUES. 例如: #31, #34:\n',
28
+ generatingByAI: '通过AI生成你提交主题...',
29
+ generatedSelectByAI: '通过AI生成合适的主题:',
30
+ confirmCommit: '是否提交或修改commit ?',
20
31
  },
21
- questions: {
22
- type: {
23
- description: '择要提交的更改类型:',
24
- enum: {
25
- feat: {
26
- description: '新功能/特性',
27
- title: 'Features',
28
- emoji: '✨',
29
- },
30
- fix: {
31
- description: 'Bug修补',
32
- title: 'Bug Fixes',
33
- emoji: '🐛',
34
- },
35
- docs: {
36
- description: '仅文档变更',
37
- title: 'Documentation',
38
- emoji: '📚',
39
- },
40
- style: {
41
- description: '不影响含义的更改(空白、格式、错误码、分号等)',
42
- title: 'Styles',
43
- emoji: '💎',
44
- },
45
- refactor: {
46
- description: '代码重构(既不修复bug也不添加特性的更改)',
47
- title: 'Code Refactoring',
48
- emoji: '📦',
49
- },
50
- perf: {
51
- description: '改进性能的调整',
52
- title: 'Performance Improvements',
53
- emoji: '🚀',
54
- },
55
- test: {
56
- description: '添加缺失的测试或纠正现有的测试',
57
- title: 'Tests',
58
- emoji: '🚨',
59
- },
60
- build: {
61
- description:
62
- '影响构建系统或外部依赖的更改(例如:gulp, broccoli, npm等)',
63
- title: 'Builds',
64
- emoji: '🛠',
65
- },
66
- ci: {
67
- description:
68
- '更改CI配置文件和脚本(例如:Travis、Circle、BrowserStack、SauceLabs等)',
69
- title: 'Continuous Integrations',
70
- emoji: '⚙️',
71
- },
72
- chore: {
73
- description: '其他不修改src或测试文件的更改',
74
- title: 'Chores',
75
- emoji: '♻️',
76
- },
77
- revert: {
78
- description: '恢复前一个提交',
79
- title: 'Reverts',
80
- emoji: '🗑',
81
- },
82
- },
32
+ types: [
33
+ { value: 'feat', name: 'feat: ✨ 含有新功能', emoji: ':sparkles:' },
34
+ { value: 'fix', name: 'fix: 🐛 Bug修复', emoji: ':bug:' },
35
+ {
36
+ value: 'docs',
37
+ name: 'docs: 📝 仅文档更改',
38
+ emoji: ':memo:',
83
39
  },
84
- scope: {
85
- description: '此更改的范围是什么(例如:组件或文件名)',
40
+ {
41
+ value: 'style',
42
+ name: 'style: 💄 不影响代码含义的更改',
43
+ emoji: ':lipstick:',
86
44
  },
87
- subject: {
88
- description: '用简短的祈使语句描述变化',
45
+ {
46
+ value: 'refactor',
47
+ name: 'refactor: ♻️ 既不修复错误也不增加功能的代码更改',
48
+ emoji: ':recycle:',
89
49
  },
90
- body: {
91
- description: '对变更提供更详细的描述',
50
+ {
51
+ value: 'perf',
52
+ name: 'perf: ⚡️ 改进性能的代码更改',
53
+ emoji: ':zap:',
92
54
  },
93
- isBreaking: {
94
- description: '有什么突破性的变化吗?',
55
+ {
56
+ value: 'test',
57
+ name: 'test: ✅ 添加缺失的测试或更正现有的测试',
58
+ emoji: ':white_check_mark:',
95
59
  },
96
- breakingBody: {
97
- description: '中断变更提交需要一个主体. 请输入提交本身的更长的描述',
60
+ {
61
+ value: 'build',
62
+ name: 'build: 📦️ 影响构建系统或外部依赖的更改',
63
+ emoji: ':package:',
98
64
  },
99
- breaking: {
100
- description: '描述突破性的变化',
65
+ {
66
+ value: 'ci',
67
+ name: 'ci: 🎡 对CI配置文件和脚本的更改',
68
+ emoji: ':ferris_wheel:',
101
69
  },
102
- isIssueAffected: {
103
- description: '这个变化会影响任何未决问题吗?',
70
+ {
71
+ value: 'chore',
72
+ name: 'chore: 🔨 其他不修改src或测试文件的更改',
73
+ emoji: ':hammer:',
104
74
  },
105
- issuesBody: {
106
- description:
107
- '如果问题被关闭, 则提交需要一个主体. 请输入提交本身的更长的描述',
75
+ {
76
+ value: 'revert',
77
+ name: 'revert: ⏪️ 恢复之前的提交',
78
+ emoji: ':rewind:',
108
79
  },
109
- issues: {
110
- description: '添加问题引用(例如:"fix #123", "re #123".)',
111
- },
112
- },
80
+ ],
81
+ issuePrefixes: [
82
+ { value: 'link', name: 'link: 链接 ISSUES 进行中' },
83
+ { value: 'closed', name: 'closed: 标记 ISSUES 已完成' },
84
+ ],
113
85
  },
114
86
  };
115
87
  `;
@@ -1,7 +1,7 @@
1
1
  const folderPath = '.';
2
2
 
3
3
  const contentFileContent = `{
4
- "path": "@commitlint/cz-commitlint"
4
+ "path": "node_modules/cz-git"
5
5
  }
6
6
  `;
7
7
 
@@ -17,10 +17,10 @@ function getGlobalDevelopPackages() {
17
17
  '@commitlint/cli',
18
18
  '@commitlint/config-conventional',
19
19
  '@commitlint/config-pnpm-scopes',
20
- '@commitlint/cz-commitlint',
21
20
  '@pmmmwh/react-refresh-webpack-plugin',
22
21
  'commitizen',
23
22
  'conventional-changelog-conventionalcommits',
23
+ 'cz-git',
24
24
  ]);
25
25
 
26
26
  packages = packages.concat([
@@ -1,8 +1,8 @@
1
1
  export namespace contentFile {
2
- export let folderPath: string;
3
- export let fileName: string;
4
- export let coverFile: boolean;
5
- export { contentFileContent as fileContent };
2
+ export let folderPath: string;
3
+ export let fileName: string;
4
+ export let coverFile: boolean;
5
+ export { contentFileContent as fileContent };
6
6
  }
7
- declare const contentFileContent: "/* eslint-disable no-undef */\n/* eslint-disable import/no-commonjs */\n/* eslint-disable unicorn/prefer-module */\n/* eslint-disable no-useless-escape */\n\nmodule.exports = {\n extends: [\n '@commitlint/config-conventional',\n '@commitlint/config-pnpm-scopes',\n ],\n parserPreset: 'conventional-changelog-conventionalcommits',\n prompt: {\n messages: {\n skip: '[可跳过]',\n max: '[字数上限: %d]',\n min: '[字数下限: %d]',\n emptyWarning: '此为必填项目, 不能为空白',\n upperLimitWarning: '超过最大限制',\n lowerLimitWarning: '低于最小限制',\n },\n questions: {\n type: {\n description: '择要提交的更改类型:',\n enum: {\n feat: {\n description: '新功能/特性',\n title: 'Features',\n emoji: '',\n },\n fix: {\n description: 'Bug修补',\n title: 'Bug Fixes',\n emoji: '🐛',\n },\n docs: {\n description: '仅文档变更',\n title: 'Documentation',\n emoji: '📚',\n },\n style: {\n description: '不影响含义的更改(空白、格式、错误码、分号等)',\n title: 'Styles',\n emoji: '💎',\n },\n refactor: {\n description: '代码重构(既不修复bug也不添加特性的更改)',\n title: 'Code Refactoring',\n emoji: '📦',\n },\n perf: {\n description: '改进性能的调整',\n title: 'Performance Improvements',\n emoji: '🚀',\n },\n test: {\n description: '添加缺失的测试或纠正现有的测试',\n title: 'Tests',\n emoji: '🚨',\n },\n build: {\n description:\n '影响构建系统或外部依赖的更改(例如:gulp, broccoli, npm等)',\n title: 'Builds',\n emoji: '🛠',\n },\n ci: {\n description:\n '更改CI配置文件和脚本(例如:Travis、Circle、BrowserStack、SauceLabs等)',\n title: 'Continuous Integrations',\n emoji: '⚙️',\n },\n chore: {\n description: '其他不修改src或测试文件的更改',\n title: 'Chores',\n emoji: '♻️',\n },\n revert: {\n description: '恢复前一个提交',\n title: 'Reverts',\n emoji: '🗑',\n },\n },\n },\n scope: {\n description: '此更改的范围是什么(例如:组件或文件名)',\n },\n subject: {\n description: '用简短的祈使语句描述变化',\n },\n body: {\n description: '对变更提供更详细的描述',\n },\n isBreaking: {\n description: '有什么突破性的变化吗?',\n },\n breakingBody: {\n description: '中断变更提交需要一个主体. 请输入提交本身的更长的描述',\n },\n breaking: {\n description: '描述突破性的变化',\n },\n isIssueAffected: {\n description: '这个变化会影响任何未决问题吗?',\n },\n issuesBody: {\n description:\n '如果问题被关闭, 则提交需要一个主体. 请输入提交本身的更长的描述',\n },\n issues: {\n description: '添加问题引用(例如:\"fix #123\", \"re #123\".)',\n },\n },\n },\n};\n";
7
+ declare const contentFileContent: "/* eslint-disable no-undef */\n/* eslint-disable import/no-commonjs */\n/* eslint-disable unicorn/prefer-module */\n/* eslint-disable no-useless-escape */\n\nmodule.exports = {\n extends: [\n '@commitlint/config-conventional',\n '@commitlint/config-pnpm-scopes',\n ],\n parserPreset: 'conventional-changelog-conventionalcommits',\n prompt: {\n useEmoji: true,\n customScopesAlias: '以上都不是?我要自定义',\n emptyScopesAlias: '跳过',\n emptyIssuePrefixAlias: '跳过',\n customIssuePrefixAlias: '自定义前缀',\n messages: {\n type: '择要提交的更改类型:',\n scope: '此更改的范围是什么(例如:组件或文件名):',\n customScope: '此更改的范围是什么(例如:组件或文件名):',\n subject: '用简短的祈使语句描述变化:\n',\n body: '对变更提供更详细的描述 (可空). \"|\" 为多行间隔符:\n',\n breaking: '有什么破坏性的变化吗 (可空). \"|\" 为多行间隔符:\n',\n footerPrefixesSelect: '通过下列选择变更列表的ISSUES类型 (可空):',\n customFooterPrefix: '输入 ISSUES 前缀:',\n footer: '列出此更改引起的任何 ISSUES. 例如: #31, #34:\n',\n generatingByAI: '通过AI生成你提交主题...',\n generatedSelectByAI: '通过AI生成合适的主题:',\n confirmCommit: '是否提交或修改commit ?',\n },\n types: [\n { value: 'feat', name: 'feat: ✨ 含有新功能', emoji: ':sparkles:' },\n { value: 'fix', name: 'fix: 🐛 Bug修复', emoji: ':bug:' },\n {\n value: 'docs',\n name: 'docs: 📝 仅文档更改',\n emoji: ':memo:',\n },\n {\n value: 'style',\n name: 'style: 💄 不影响代码含义的更改',\n emoji: ':lipstick:',\n },\n {\n value: 'refactor',\n name: 'refactor: ♻️ 既不修复错误也不增加功能的代码更改',\n emoji: ':recycle:',\n },\n {\n value: 'perf',\n name: 'perf: ⚡️ 改进性能的代码更改',\n emoji: ':zap:',\n },\n {\n value: 'test',\n name: 'test: ✅ 添加缺失的测试或更正现有的测试',\n emoji: ':white_check_mark:',\n },\n {\n value: 'build',\n name: 'build: 📦️ 影响构建系统或外部依赖的更改',\n emoji: ':package:',\n },\n {\n value: 'ci',\n name: 'ci: 🎡 对CI配置文件和脚本的更改',\n emoji: ':ferris_wheel:',\n },\n {\n value: 'chore',\n name: 'chore: 🔨 其他不修改src或测试文件的更改',\n emoji: ':hammer:',\n },\n {\n value: 'revert',\n name: 'revert: ⏪️ 恢复之前的提交',\n emoji: ':rewind:',\n },\n ],\n issuePrefixes: [\n { value: 'link', name: 'link: 链接 ISSUES 进行中' },\n { value: 'closed', name: 'closed: 标记 ISSUES 已完成' },\n ],\n },\n};\n";
8
8
  export {};
@@ -1,8 +1,8 @@
1
1
  export namespace contentFile {
2
- export let folderPath: string;
3
- export let fileName: string;
4
- export let coverFile: boolean;
5
- export { contentFileContent as fileContent };
2
+ export let folderPath: string;
3
+ export let fileName: string;
4
+ export let coverFile: boolean;
5
+ export { contentFileContent as fileContent };
6
6
  }
7
- declare const contentFileContent: "{\n \"path\": \"@commitlint/cz-commitlint\"\n}\n";
7
+ declare const contentFileContent: '{\n "path": "node_modules/cz-git"\n}\n';
8
8
  export {};