@zwa73/dev-utils 1.0.62 → 1.0.63

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.
@@ -69,7 +69,7 @@ async function installPackage() {
69
69
  /**对项目进行初始化 */
70
70
  const CmdInit = (program) => program
71
71
  .command('Init')
72
- .command('init')
72
+ .alias('init')
73
73
  .description('对当前目录进行项目初始化')
74
74
  .action(async (opt) => {
75
75
  (0, RouteInterface_1.checkProject)();
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ /**对项目进行初始化 */
3
+ export declare const CmdInitElectron: (program: Command) => Command;
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.CmdCreateElectronFrame = void 0;
29
+ exports.CmdInitElectron = void 0;
30
30
  const fs = __importStar(require("fs"));
31
31
  const pathe_1 = __importDefault(require("pathe"));
32
32
  const utils_1 = require("@zwa73/utils");
@@ -48,9 +48,9 @@ async function copyData() {
48
48
  await Promise.all(plist);
49
49
  }
50
50
  /**对项目进行初始化 */
51
- const CmdCreateElectronFrame = (program) => program
52
- .command('CreateElectronFrame')
53
- .command('createelectronframe')
51
+ const CmdInitElectron = (program) => program
52
+ .command('Init-Electron')
53
+ .alias('initelectron')
54
54
  .description('对当前目录进行项目初始化,创建Electron基础环境')
55
55
  .action(async (opt) => {
56
56
  (0, RouteInterface_1.checkProject)();
@@ -60,4 +60,4 @@ const CmdCreateElectronFrame = (program) => program
60
60
  utils_1.UtilFunc.exec(`npm install --registry ${RouteInterface_1.MIRROR_SOURCE}`)
61
61
  ]);
62
62
  });
63
- exports.CmdCreateElectronFrame = CmdCreateElectronFrame;
63
+ exports.CmdInitElectron = CmdInitElectron;
@@ -10,7 +10,7 @@ const ScanDups_1 = require("./ScanDups");
10
10
  const GenSchema_1 = require("./GenSchema");
11
11
  const ExpandMacro_1 = require("./ExpandMacro");
12
12
  const GenI18n_1 = require("./GenI18n");
13
- const CreateElectronFrame_1 = require("./CreateElectronFrame");
13
+ const InitElectron_1 = require("./InitElectron");
14
14
  async function cliRoute() {
15
15
  (0, Init_1.CmdInit)(commander_1.program);
16
16
  (0, Node_1.CmdNode)(commander_1.program);
@@ -20,6 +20,6 @@ async function cliRoute() {
20
20
  (0, GenSchema_1.CmdGenSchema)(commander_1.program);
21
21
  (0, ExpandMacro_1.CmdExpandMacro)(commander_1.program);
22
22
  (0, GenI18n_1.CmdGenI18n)(commander_1.program);
23
- (0, CreateElectronFrame_1.CmdCreateElectronFrame)(commander_1.program);
23
+ (0, InitElectron_1.CmdInitElectron)(commander_1.program);
24
24
  commander_1.program.parse(process.argv);
25
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zwa73/dev-utils",
3
- "version": "1.0.62",
3
+ "version": "1.0.63",
4
4
  "description": "编译与调试工具",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -53,7 +53,7 @@ async function installPackage() {
53
53
  /**对项目进行初始化 */
54
54
  export const CmdInit = (program:Command)=>program
55
55
  .command('Init')
56
- .command('init')
56
+ .alias('init')
57
57
  .description('对当前目录进行项目初始化')
58
58
  .action(async (opt) => {
59
59
  checkProject();
@@ -26,9 +26,9 @@ async function copyData() {
26
26
  }
27
27
 
28
28
  /**对项目进行初始化 */
29
- export const CmdCreateElectronFrame = (program:Command)=>program
30
- .command('CreateElectronFrame')
31
- .command('createelectronframe')
29
+ export const CmdInitElectron = (program:Command)=>program
30
+ .command('Init-Electron')
31
+ .alias('initelectron')
32
32
  .description('对当前目录进行项目初始化,创建Electron基础环境')
33
33
  .action(async (opt) => {
34
34
  checkProject();
@@ -8,7 +8,7 @@ import { CmdScanDups } from './ScanDups';
8
8
  import { CmdGenSchema } from './GenSchema';
9
9
  import { CmdExpandMacro } from './ExpandMacro';
10
10
  import { CmdGenI18n } from './GenI18n';
11
- import { CmdCreateElectronFrame } from './CreateElectronFrame';
11
+ import { CmdInitElectron } from './InitElectron';
12
12
 
13
13
  export async function cliRoute(){
14
14
  CmdInit(program);
@@ -19,6 +19,6 @@ export async function cliRoute(){
19
19
  CmdGenSchema(program);
20
20
  CmdExpandMacro(program);
21
21
  CmdGenI18n(program);
22
- CmdCreateElectronFrame(program);
22
+ CmdInitElectron(program);
23
23
  program.parse(process.argv);
24
24
  }
@@ -1,3 +0,0 @@
1
- import { Command } from 'commander';
2
- /**对项目进行初始化 */
3
- export declare const CmdCreateElectronFrame: (program: Command) => Command;