@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.
- package/dist/Command/Init.js +1 -1
- package/dist/Command/InitElectron.d.ts +3 -0
- package/dist/Command/{CreateElectronFrame.js → InitElectron.js} +5 -5
- package/dist/Command/Route.js +2 -2
- package/package.json +1 -1
- package/src/Command/Init.ts +1 -1
- package/src/Command/{CreateElectronFrame.ts → InitElectron.ts} +3 -3
- package/src/Command/Route.ts +2 -2
- package/dist/Command/CreateElectronFrame.d.ts +0 -3
package/dist/Command/Init.js
CHANGED
@@ -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.
|
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
|
52
|
-
.command('
|
53
|
-
.
|
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.
|
63
|
+
exports.CmdInitElectron = CmdInitElectron;
|
package/dist/Command/Route.js
CHANGED
@@ -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
|
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,
|
23
|
+
(0, InitElectron_1.CmdInitElectron)(commander_1.program);
|
24
24
|
commander_1.program.parse(process.argv);
|
25
25
|
}
|
package/package.json
CHANGED
package/src/Command/Init.ts
CHANGED
@@ -26,9 +26,9 @@ async function copyData() {
|
|
26
26
|
}
|
27
27
|
|
28
28
|
/**对项目进行初始化 */
|
29
|
-
export const
|
30
|
-
.command('
|
31
|
-
.
|
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();
|
package/src/Command/Route.ts
CHANGED
@@ -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 {
|
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
|
-
|
22
|
+
CmdInitElectron(program);
|
23
23
|
program.parse(process.argv);
|
24
24
|
}
|