anl 1.7.8 → 25.10.13

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 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="1.7.8",i="FE command line tool",s="bin/an-cli.js",p={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"},l={anl:"bin/an-cli.js"},o="Gleason <bianliuzhu@gmail.com>",t={"@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"},r={"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"},n=["typescript","cli","typescript 脚手架","ts 脚手架","ts-cli","脚手架"],c=["package.json","README.md","lib","template"],u={type:"git",url:"https://github.com/bianliuzhu/an-cli.git"},a="commonjs",m={name:"anl",version:e,description:i,main:s,scripts:p,bin:l,author:o,license:"ISC",devDependencies:t,dependencies:r,keywords:n,files:c,repository:u,type:a};exports.author=o,exports.bin=l,exports.default=m,exports.dependencies=r,exports.description=i,exports.devDependencies=t,exports.files=c,exports.keywords=n,exports.license="ISC",exports.main=s,exports.name="anl",exports.repository=u,exports.scripts=p,exports.type=a,exports.version=e;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="25.10.13",i="FE command line tool",t="bin/an-cli.js",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"},s={anl:"bin/an-cli.js"},l="Gleason <bianliuzhu@gmail.com>",n={"@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"},r={"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"},p=["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"],c=["package.json","README.md","lib","template"],a={type:"git",url:"https://github.com/bianliuzhu/an-cli.git"},u="commonjs",g={name:"anl",version:e,description:i,main:t,scripts:o,bin:s,author:l,license:"ISC",devDependencies:n,dependencies:r,keywords:p,files:c,repository:a,type:u};exports.author=l,exports.bin=s,exports.default=g,exports.dependencies=r,exports.description=i,exports.devDependencies=n,exports.files=c,exports.keywords=p,exports.license="ISC",exports.main=t,exports.name="anl",exports.repository=a,exports.scripts=o,exports.type=u,exports.version=e;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("path"),e=require("fs"),t=require("child_process"),i=require("../utils/index.js"),s=require("./utils.js");function c(o){return o&&"object"==typeof o&&"default"in o?o:{default:o}}var r=c(o),a=c(e);exports.gitHandle=(o=[])=>{o.includes("gitflow")&&(async()=>{const o=r.default.join(__dirname,"..","..","git-local-config"),e=process.cwd(),c=r.default.join(o,".gitscripts"),n=r.default.join(e,".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 g=[".gitconfig",".commit-type.cjs"];for(const t of g){const c=r.default.join(o,t),a=r.default.join(e,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(o){i.log.error(`设置 .githooks/commit-msg 可执行权限失败: ${o instanceof Error?o.message:o}`)}try{t.execSync("git config --local include.path ../.gitconfig",{stdio:"ignore"}),i.log.success(".gitconfig git set")}catch(o){i.log.error("执行 git config --local include.path ../.gitconfig 失败,请手动执行该命令")}})(),o.includes("commitSubject")&&(async()=>{const o=r.default.join(__dirname,"..","..","git-local-config",".githooks"),e=process.cwd(),c=r.default.join(e,".githooks");if(await s.pathExists(o)){await s.copyDirectoryRecursive(o,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(o){i.log.error(`设置 .githooks/commit-msg 可执行权限失败: ${o instanceof Error?o.message:o}`)}try{t.execSync("git config core.hooksPath .githooks",{stdio:"ignore"}),i.log.success("git set .githooks done.")}catch(o){i.log.error("Execute [git config core.hooksPath .githooks] failed, please execute the command manually")}}else i.log.error(`source directory ${o} does not exist`)})(),o.includes("customGitCommand")&&(async()=>{const o=r.default.join(__dirname,"..","..","git-local-config"),e=process.cwd(),t=r.default.join(o,".gitattributes"),c=r.default.join(e,".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`)})()};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anl",
3
- "version": "1.7.8",
3
+ "version": "25.10.13",
4
4
  "description": "FE command line tool",
5
5
  "main": "bin/an-cli.js",
6
6
  "scripts": {
@@ -53,12 +53,29 @@
53
53
  "shelljs": "^0.8.5"
54
54
  },
55
55
  "keywords": [
56
- "typescript",
57
56
  "cli",
58
- "typescript 脚手架",
59
- "ts 脚手架",
60
- "ts-cli",
61
- "脚手架"
57
+ "command-line",
58
+ "frontend",
59
+ "typescript",
60
+ "type-generation",
61
+ "code-generator",
62
+ "swagger",
63
+ "openapi",
64
+ "api",
65
+ "rest-api",
66
+ "eslint",
67
+ "stylelint",
68
+ "prettier",
69
+ "commitlint",
70
+ "linter",
71
+ "formatter",
72
+ "react",
73
+ "vue",
74
+ "git",
75
+ "gitflow",
76
+ "developer-tools",
77
+ "automation",
78
+ "scaffolding"
62
79
  ],
63
80
  "files": [
64
81
  "package.json",