anl 1.6.7 → 1.6.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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="1.6.7",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="1.6.9",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 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("path"),t=require("fs"),i=require("child_process"),s=require("../utils/index.js"),e=require("./utils.js");function c(o){return o&&"object"==typeof o&&"default"in o?o:{default:o}}var r=c(o),a=c(t);exports.gitHandle=(o=[])=>{o.includes("gitflow")&&(async()=>{const o=r.default.join(__dirname,"..","..","..","postbuild-assets","git-local-config"),t=process.cwd(),c=r.default.join(o,".gitscripts"),n=r.default.join(t,".gitscripts");await e.pathExists(c)?(await e.copyDirectoryRecursive(c,n),s.log.success(".gitscripts create done.")):s.log.error(`source directory ${c} does not exist`);const g=[".gitconfig",".commit-type.js"];for(const i of g){const c=r.default.join(o,i),a=r.default.join(t,i);await e.pathExists(c)?await e.copyFileIfMissing(c,a):s.log.error(`source file ${c} does not exist`)}try{a.default.chmodSync(r.default.join(n,"random-branch.sh"),493),s.log.success("chmod +x .gitscripts/random-branch.sh")}catch(o){s.log.error(`设置 .githooks/commit-msg 可执行权限失败: ${o instanceof Error?o.message:o}`)}try{i.execSync("git config --local include.path ../.gitconfig",{stdio:"ignore"}),s.log.success("git config --local include.path ../.gitconfig")}catch(o){s.log.error("执行 git config --local include.path ../.gitconfig 失败,请手动执行该命令")}})(),o.includes("commitSubject")&&(async()=>{const o=r.default.join(__dirname,"..","..","..","postbuild-assets","git-local-config",".githooks"),t=process.cwd(),c=r.default.join(t,".githooks");if(await e.pathExists(o)){await e.copyDirectoryRecursive(o,c),s.log.success(".githooks create done.");try{a.default.chmodSync(r.default.join(c,"commit-msg"),493),s.log.success("chmod +x .githooks/commit-msg")}catch(o){s.log.error(`设置 .githooks/commit-msg 可执行权限失败: ${o instanceof Error?o.message:o}`)}try{i.execSync("git config core.hooksPath .githooks",{stdio:"ignore"}),s.log.success("git config core.hooksPath .githooks")}catch(o){s.log.error("执行 git config core.hooksPath .githooks 失败,请手动执行该命令")}}else s.log.error(`source directory ${o} does not exist`)})(),o.includes("customGitCommand")&&(async()=>{const o=r.default.join(__dirname,"..","..","..","postbuild-assets","git-local-config"),t=process.cwd(),i=r.default.join(o,".gitattributes"),c=r.default.join(t,".gitattributes");await e.pathExists(i)?await e.copyFileIfMissing(i,c):s.log.error(`source file ${i} does not exist`)})()};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("path"),t=require("fs"),i=require("child_process"),e=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(t);exports.gitHandle=(o=[])=>{o.includes("gitflow")&&(async()=>{const o=r.default.join(__dirname,"..","..","git-local-config"),t=process.cwd(),c=r.default.join(o,".gitscripts"),n=r.default.join(t,".gitscripts");await s.pathExists(c)?(await s.copyDirectoryRecursive(c,n),e.log.success(".gitscripts create done.")):e.log.error(`source directory ${c} does not exist`);const g=[".gitconfig",".commit-type.js"];for(const i of g){const c=r.default.join(o,i),a=r.default.join(t,i);await s.pathExists(c)?await s.copyFileIfMissing(c,a):e.log.error(`source file ${c} does not exist`)}try{a.default.chmodSync(r.default.join(n,"random-branch.sh"),493),e.log.success("chmod +x .gitscripts/random-branch.sh")}catch(o){e.log.error(`设置 .githooks/commit-msg 可执行权限失败: ${o instanceof Error?o.message:o}`)}try{i.execSync("git config --local include.path ../.gitconfig",{stdio:"ignore"}),e.log.success("git config --local include.path ../.gitconfig")}catch(o){e.log.error("执行 git config --local include.path ../.gitconfig 失败,请手动执行该命令")}})(),o.includes("commitSubject")&&(async()=>{const o=r.default.join(__dirname,"..","..","git-local-config",".githooks"),t=process.cwd(),c=r.default.join(t,".githooks");if(await s.pathExists(o)){await s.copyDirectoryRecursive(o,c),e.log.success(".githooks create done.");try{a.default.chmodSync(r.default.join(c,"commit-msg"),493),e.log.success("chmod +x .githooks/commit-msg")}catch(o){e.log.error(`设置 .githooks/commit-msg 可执行权限失败: ${o instanceof Error?o.message:o}`)}try{i.execSync("git config core.hooksPath .githooks",{stdio:"ignore"}),e.log.success("git config core.hooksPath .githooks")}catch(o){e.log.error("执行 git config core.hooksPath .githooks 失败,请手动执行该命令")}}else e.log.error(`source directory ${o} does not exist`)})(),o.includes("customGitCommand")&&(async()=>{const o=r.default.join(__dirname,"..","..","git-local-config"),t=process.cwd(),i=r.default.join(o,".gitattributes"),c=r.default.join(t,".gitattributes");await s.pathExists(i)?await s.copyFileIfMissing(i,c):e.log.error(`source file ${i} does not exist`)})()};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anl",
3
- "version": "1.6.7",
3
+ "version": "1.6.9",
4
4
  "description": "FE command line tool",
5
5
  "main": "bin/an-cli.js",
6
6
  "scripts": {