anl 25.1013.0 → 25.1014.0

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.
@@ -1,85 +1,86 @@
1
1
 
2
2
  const types = {
3
3
  features: {
4
- description: '一项新功能',
4
+ // 将中文翻译成英文
5
+ description: 'A new feature',
5
6
  title: 'Features',
6
7
  emoji: '💡',
7
8
  subject: 'feat',
8
9
  },
9
10
  bugfix: {
10
- description: '一个错误修复(开发/测试环境)',
11
+ description: 'A bug fix (development/test environment)',
11
12
  title: 'Bug Fixes',
12
13
  emoji: '🐛',
13
14
  subject: 'fix',
14
15
  },
15
16
  hotfix: {
16
- description: '一个错误修复(生产环境)',
17
+ description: 'A bug fix (production environment)',
17
18
  title: 'Hot Fixes',
18
19
  emoji: '🔥',
19
20
  subject: 'fix',
20
21
  },
21
22
  chore: {
22
- description: "日常工作、杂项",
23
+ description: "Daily work, miscellaneous",
23
24
  title: 'Chores',
24
25
  emoji: '💻',
25
26
  subject: 'chore',
26
27
  },
27
28
  config: {
28
- description: '配置相关更改',
29
+ description: 'Configuration changes',
29
30
  title: 'Configuration',
30
31
  emoji: '🛠️',
31
32
  subject: 'config',
32
33
  },
33
34
  style: {
34
- description: '不影响代码意义的变更(空白、格式、缺少分号等)或者样式文件更改(csslessscsssassstylusstyl',
35
+ description: 'Non-functional changes (whitespace, formatting, missing semicolons) or style file changes (css, less, scss, sass, stylus, styl)',
35
36
  title: 'Styles',
36
37
  emoji: '💎',
37
38
  subject: 'style',
38
39
  },
39
40
  refactor: {
40
- description: '代码更改既未修复错误也未添加功能(代码重构)',
41
+ description: 'Code changes that neither fix bugs nor add features (code refactoring)',
41
42
  title: 'Code Refactoring',
42
43
  emoji: '🛸',
43
44
  subject: 'refactor',
44
45
  },
45
46
  performance: {
46
- description: '性能优化,提高性能(优化代码)',
47
+ description: 'Performance optimization, improve performance (optimize code)',
47
48
  title: 'Performance Improvements',
48
49
  emoji: '🚀',
49
50
  subject: 'perf',
50
51
  },
51
52
  revert: {
52
- description: '撤销之前的提交',
53
+ description: 'Revert previous commits',
53
54
  title: 'Reverts',
54
55
  emoji: '💣',
55
56
  subject: 'revert',
56
57
  },
57
58
  document: {
58
- description: '文档相关更改(README.mdCHANGELOG.md',
59
+ description: 'Document changes (README.md, CHANGELOG.md)',
59
60
  title: 'Documentation',
60
61
  emoji: '📚',
61
62
  subject: 'docs',
62
63
  },
63
64
  test: {
64
- description: '添加缺失的测试或纠正现有测试(测试代码)',
65
+ description: 'Add missing tests or correct existing tests (test code)',
65
66
  title: 'Tests',
66
67
  emoji: '🪤',
67
68
  subject: 'test',
68
69
  },
69
70
  cicd: {
70
- description: '更改CI / CD配置文件和脚本(示例范围:TravisCircleBrowserStackSauceLabs',
71
+ description: 'Change CI / CD configuration files and scripts (example scope: Travis, Circle, BrowserStack, SauceLabs)',
71
72
  title: 'Continuous Integrations',
72
73
  emoji: '💿',
73
74
  subject: 'ci',
74
75
  },
75
76
  build: {
76
- description: '影响构建系统或外部依赖项的更改(例如范围:gulpbroccolinpmwebpackrollupviteesbuildwebpack',
77
+ description: 'Changes affecting the build system or external dependencies (example scope: gulp, broccoli, npm, webpack, rollup, vite, esbuild, webpack)',
77
78
  title: 'Builds',
78
79
  emoji: '📦',
79
80
  subject: 'build',
80
81
  },
81
82
  release: {
82
- description: '发布版本',
83
+ description: 'Release version',
83
84
  title: 'Releases',
84
85
  emoji: '🎉',
85
86
  subject: 'release',
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="25.1013.0",i="FE command line tool",t="bin/an-cli.js",s={registry:"https://registry.npmjs.org"},o={dev:"rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript -w",build:"rimraf lib && rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",pub:"bash publish.sh",ts:"tsc ./src/int.ts --noEmit --watch",blink:"npm run build && npm link","sync-docs":"node scripts/sync-docs.js"},r={anl:"bin/an-cli.js"},n="Gleason <bianliuzhu@gmail.com>",l={"@commitlint/cli":"^17.4.3","@commitlint/config-conventional":"^17.4.3","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.1.3","@rollup/plugin-typescript":"^8.3.0","@types/inquirer":"^9.0.7","@types/shelljs":"^0.8.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","cross-env":"^7.0.3",eslint:"^8.7.0",husky:"^8.0.3","openapi-types":"^12.1.3",prettier:"^3.3.2",rimraf:"^5.0.7",rollup:"^2.64.0","rollup-plugin-cleandir":"^2.0.0","rollup-plugin-copy":"^3.5.0","rollup-plugin-terser":"^7.0.2",typescript:"^4.5.4"},p={"app-root-path":"^3.1.0",cac:"^6.7.12",chalk:"4.*","clear-console":"^1.1.0",commander:"14.0.1",figures:"^6.1.0",inquirer:"^10.1.8","log-symbols":"^5.1.0",ora:"5.*","progress-estimator":"^0.3.0",shelljs:"^0.8.5"},c=["cli","command-line","frontend","typescript","type-generation","code-generator","swagger","openapi","api","rest-api","eslint","stylelint","prettier","commitlint","linter","formatter","react","vue","git","gitflow","developer-tools","automation","scaffolding"],a=["package.json","README.md","lib","template"],u={type:"git",url:"https://github.com/bianliuzhu/an-cli.git"},g="commonjs",m={name:"anl",version:e,description:i,main:t,publishConfig:s,scripts:o,bin:r,author:n,license:"ISC",devDependencies:l,dependencies:p,keywords:c,files:a,repository:u,type:g};exports.author=n,exports.bin=r,exports.default=m,exports.dependencies=p,exports.description=i,exports.devDependencies=l,exports.files=a,exports.keywords=c,exports.license="ISC",exports.main=t,exports.name="anl",exports.publishConfig=s,exports.repository=u,exports.scripts=o,exports.type=g,exports.version=e;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="25.1014.0",i="FE command line tool",t="bin/an-cli.js",s={registry:"https://registry.npmjs.org"},o={dev:"rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript -w",build:"rimraf lib && rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",pub:"bash publish.sh",ts:"tsc ./src/int.ts --noEmit --watch",blink:"npm run build && npm link","sync-docs":"node scripts/sync-docs.js"},r={anl:"bin/an-cli.js"},n="Gleason <bianliuzhu@gmail.com>",l={"@commitlint/cli":"^17.4.3","@commitlint/config-conventional":"^17.4.3","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.1.3","@rollup/plugin-typescript":"^8.3.0","@types/inquirer":"^9.0.7","@types/shelljs":"^0.8.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","cross-env":"^7.0.3",eslint:"^8.7.0",husky:"^8.0.3","openapi-types":"^12.1.3",prettier:"^3.3.2",rimraf:"^5.0.7",rollup:"^2.64.0","rollup-plugin-cleandir":"^2.0.0","rollup-plugin-copy":"^3.5.0","rollup-plugin-terser":"^7.0.2",typescript:"^4.5.4"},p={"app-root-path":"^3.1.0",cac:"^6.7.12",chalk:"4.*","clear-console":"^1.1.0",commander:"14.0.1",figures:"^6.1.0",inquirer:"^10.1.8","log-symbols":"^5.1.0",ora:"5.*","progress-estimator":"^0.3.0",shelljs:"^0.8.5"},c=["cli","command-line","frontend","typescript","type-generation","code-generator","swagger","openapi","api","rest-api","eslint","stylelint","prettier","commitlint","linter","formatter","react","vue","git","gitflow","developer-tools","automation","scaffolding"],a=["package.json","README.md","lib","template"],u={type:"git",url:"https://github.com/bianliuzhu/an-cli.git"},g="commonjs",m={name:"anl",version:e,description:i,main:t,publishConfig:s,scripts:o,bin:r,author:n,license:"ISC",devDependencies:l,dependencies:p,keywords:c,files:a,repository:u,type:g};exports.author=n,exports.bin=r,exports.default=m,exports.dependencies=p,exports.description=i,exports.devDependencies=l,exports.files=a,exports.keywords=c,exports.license="ISC",exports.main=t,exports.name="anl",exports.publishConfig=s,exports.repository=u,exports.scripts=o,exports.type=g,exports.version=e;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("path"),o=require("fs"),t=require("child_process"),i=require("../utils/index.js"),s=require("./utils.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=c(e),a=c(o);exports.gitHandle=(e=[])=>{e.includes("gitflow")&&(async()=>{const e=r.default.join(__dirname,"..","..","git-local-config"),o=process.cwd(),c=r.default.join(e,".gitscripts"),n=r.default.join(o,".gitscripts");await s.pathExists(c)?(await s.copyDirectoryRecursive(c,n),i.log.success(".gitscripts create done.")):i.log.error(`source directory ${c} does not exist`);const l=[".gitconfig",".commit-type.cjs"];for(const t of l){const c=r.default.join(e,t),a=r.default.join(o,t);await s.pathExists(c)?await s.copyFileIfMissing(c,a):i.log.error(`source file ${c} does not exist`)}try{a.default.chmodSync(r.default.join(n,"random-branch.sh"),493),i.log.success("random-branch.sh Raise power")}catch(e){console.log(e),i.log.error(`Set .githooks/commit-msg executable permission failed: ${e instanceof Error?e.message:e}`)}try{t.execSync("git config --local include.path ../.gitconfig",{stdio:"ignore"}),i.log.success(".gitconfig git set")}catch(e){console.log(e),i.log.error("Execute git config --local include.path ../.gitconfig failed, please execute the command manually")}})(),e.includes("commitSubject")&&(async()=>{const e=r.default.join(__dirname,"..","..","git-local-config",".githooks"),o=process.cwd(),c=r.default.join(o,".githooks");if(await s.pathExists(e)){await s.copyDirectoryRecursive(e,c),i.log.success(".githooks create done.");try{a.default.chmodSync(r.default.join(c,"commit-msg"),493),i.log.success("commit-msg raise power done.")}catch(e){console.log(e),i.log.error(`Set .githooks/commit-msg executable permission failed: ${e instanceof Error?e.message:e}`)}try{t.execSync("git config core.hooksPath .githooks",{stdio:"ignore"}),i.log.success("git set .githooks done.")}catch(e){console.log(e),i.log.error("Execute [git config core.hooksPath .githooks] failed, please execute the command manually")}}else i.log.error(`source directory ${e} does not exist`)})(),e.includes("customGitCommand")&&(async()=>{const e=r.default.join(__dirname,"..","..","git-local-config"),o=process.cwd(),t=r.default.join(e,".gitattributes"),c=r.default.join(o,".gitattributes");await s.pathExists(t)?await s.copyFileIfMissing(t,c):i.log.error(`source file ${t} does not exist`)})()};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("path"),o=require("fs"),t=require("child_process"),i=require("../utils/index.js"),s=require("./utils.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=c(e),a=c(o);exports.gitHandle=(e=[])=>{e.includes("gitflow")&&(async()=>{const e=r.default.join(__dirname,"..","..","git-local-config"),o=process.cwd(),c=r.default.join(e,".gitscripts"),n=r.default.join(o,".gitscripts");await s.pathExists(c)?(await s.copyDirectoryRecursive(c,n),i.log.success(".gitscripts create done.")):i.log.error(`source directory ${c} does not exist`);const l=[".gitconfig",".commit-type.cjs"];for(const t of l){const c=r.default.join(e,t),a=r.default.join(o,t);await s.pathExists(c)?await s.copyFileIfMissing(c,a):i.log.error(`source file ${c} does not exist`)}try{a.default.chmodSync(r.default.join(n,"random-branch.sh"),493),i.log.success("random-branch.sh Raise power")}catch(e){console.log(e),i.log.error(`Set .githooks/commit-msg executable permission failed: ${e instanceof Error?e.message:e}`)}try{t.execSync("git config --local include.path ../.gitconfig",{stdio:"ignore"}),i.log.success(".gitconfig git set")}catch(e){console.log(e),i.log.error("Execute git config --local include.path ../.gitconfig failed, please execute the command manually")}})(),e.includes("commitSubject")&&(async()=>{const e=r.default.join(__dirname,"..","..","git-local-config",".githooks"),o=process.cwd(),c=r.default.join(o,".githooks");if(await s.pathExists(e)){await s.copyDirectoryRecursive(e,c),i.log.success(".githooks create done.");try{a.default.chmodSync(r.default.join(c,"commit-msg"),493),i.log.success("commit-msg raise power done.")}catch(e){console.log(e),i.log.error(`Set .githooks/commit-msg executable permission failed: ${e instanceof Error?e.message:e}`)}try{t.execSync("git config core.hooksPath .githooks",{stdio:"ignore"}),i.log.success("git set .githooks done.")}catch(e){console.log(e),i.log.error("Execute [git config core.hooksPath .githooks] failed, please execute the command manually")}}else i.log.error(`source directory ${e} does not exist`)})(),e.includes("customGitCommand")&&(async()=>{const e=r.default.join(__dirname,"..","..","git-local-config"),o=process.cwd(),t=r.default.join(e,".gitattributes"),c=r.default.join(o,".gitattributes");await s.pathExists(t)?await s.copyFileIfMissing(t,c):i.log.error(`source file ${t} does not exist`)})(),console.log("\n"),i.log.warning("please run [git nb] command to create a new branch."),console.log("\n")};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anl",
3
- "version": "25.1013.0",
3
+ "version": "25.1014.0",
4
4
  "description": "FE command line tool",
5
5
  "main": "bin/an-cli.js",
6
6
  "publishConfig": {