@zwa73/dev-utils 1.0.63 → 1.0.64
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/data/CreateElectronFrame/package-lock.json +418 -2672
- package/data/CreateElectronFrame/package.json +0 -2
- package/data/CreateElectronFrame/tsconfig.json +31 -0
- package/data/init/tsconfig.compile.json +4 -0
- package/data/init/tsconfig.json +22 -0
- package/dist/Command/InitElectron.js +5 -1
- package/dist/Command/Route.js +1 -1
- package/package.json +1 -1
- package/src/Command/InitElectron.ts +8 -1
- package/src/Command/Route.ts +1 -1
- package/tsconfig.compile.json +4 -0
- package/tsconfig.json +22 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"target": "ES6",
|
4
|
+
"allowJs": true,
|
5
|
+
"module": "commonjs",
|
6
|
+
"skipLibCheck": true,
|
7
|
+
"esModuleInterop": true,
|
8
|
+
"noImplicitAny": true,
|
9
|
+
"sourceMap": true,
|
10
|
+
"baseUrl": ".",
|
11
|
+
"outDir": "dist",
|
12
|
+
"moduleResolution": "node",
|
13
|
+
"resolveJsonModule": true,
|
14
|
+
"strict": true,
|
15
|
+
"jsx": "react-jsx",
|
16
|
+
"paths": {
|
17
|
+
"*": ["node_modules/*"],
|
18
|
+
"@/src/*": ["./src/*"],
|
19
|
+
"@/*": ["./*"],
|
20
|
+
"@": ["./src/index"],
|
21
|
+
"Static": ["./src/Static"],
|
22
|
+
"Component": ["./src/Component"]
|
23
|
+
}
|
24
|
+
},
|
25
|
+
"include": [
|
26
|
+
"./src/**/*.ts",
|
27
|
+
"./src/**/*.tsx",
|
28
|
+
"webpack.plugins.ts"
|
29
|
+
],
|
30
|
+
"exclude": ["./node_modules/**/*"]
|
31
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"allowJs": true,
|
4
|
+
"strict": true,
|
5
|
+
"target": "ES2022",
|
6
|
+
"module": "CommonJS",
|
7
|
+
"moduleResolution": "node",
|
8
|
+
"esModuleInterop": true,
|
9
|
+
"outDir": "./dist",
|
10
|
+
"declaration": true,
|
11
|
+
"baseUrl": ".",
|
12
|
+
"emitDecoratorMetadata": true,
|
13
|
+
"experimentalDecorators": true,
|
14
|
+
"paths": {
|
15
|
+
"@src/*": ["./src/*"],
|
16
|
+
"@/*": ["./*"],
|
17
|
+
"@": ["./src/index"]
|
18
|
+
}
|
19
|
+
},
|
20
|
+
"include": ["./src/**/*.ts", "./src/**/*.js", "./jest/**/*.ts"],
|
21
|
+
"exclude": ["./node_modules/**/*"]
|
22
|
+
}
|
@@ -32,6 +32,10 @@ const pathe_1 = __importDefault(require("pathe"));
|
|
32
32
|
const utils_1 = require("@zwa73/utils");
|
33
33
|
const RouteInterface_1 = require("./RouteInterface");
|
34
34
|
const InitDataPath = pathe_1.default.join(RouteInterface_1.DATA_PATH, 'CreateElectronFrame');
|
35
|
+
(async () => {
|
36
|
+
const filelist = await fs.promises.readdir(InitDataPath);
|
37
|
+
console.log(filelist);
|
38
|
+
})();
|
35
39
|
/**复制基础文件 */
|
36
40
|
async function copyData() {
|
37
41
|
const filelist = await fs.promises.readdir(InitDataPath);
|
@@ -53,7 +57,7 @@ const CmdInitElectron = (program) => program
|
|
53
57
|
.alias('initelectron')
|
54
58
|
.description('对当前目录进行项目初始化,创建Electron基础环境')
|
55
59
|
.action(async (opt) => {
|
56
|
-
|
60
|
+
//checkProject();
|
57
61
|
utils_1.SLogger.info(`开始初始化设置当前目录 ${RouteInterface_1.PROJECT_PATH}`);
|
58
62
|
await Promise.all([
|
59
63
|
copyData(),
|
package/dist/Command/Route.js
CHANGED
@@ -13,6 +13,7 @@ const GenI18n_1 = require("./GenI18n");
|
|
13
13
|
const InitElectron_1 = require("./InitElectron");
|
14
14
|
async function cliRoute() {
|
15
15
|
(0, Init_1.CmdInit)(commander_1.program);
|
16
|
+
(0, InitElectron_1.CmdInitElectron)(commander_1.program);
|
16
17
|
(0, Node_1.CmdNode)(commander_1.program);
|
17
18
|
(0, Release_1.CmdRelease)(commander_1.program);
|
18
19
|
(0, MapPath_1.CmdMapPath)(commander_1.program);
|
@@ -20,6 +21,5 @@ async function cliRoute() {
|
|
20
21
|
(0, GenSchema_1.CmdGenSchema)(commander_1.program);
|
21
22
|
(0, ExpandMacro_1.CmdExpandMacro)(commander_1.program);
|
22
23
|
(0, GenI18n_1.CmdGenI18n)(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
@@ -9,6 +9,13 @@ import { checkProject, DATA_PATH, MIRROR_SOURCE, PROJECT_PATH } from './RouteInt
|
|
9
9
|
|
10
10
|
const InitDataPath = path.join(DATA_PATH,'CreateElectronFrame');
|
11
11
|
|
12
|
+
(async ()=>{
|
13
|
+
|
14
|
+
|
15
|
+
const filelist = await fs.promises.readdir(InitDataPath);
|
16
|
+
console.log(filelist);
|
17
|
+
})();
|
18
|
+
|
12
19
|
/**复制基础文件 */
|
13
20
|
async function copyData() {
|
14
21
|
const filelist = await fs.promises.readdir(InitDataPath);
|
@@ -31,7 +38,7 @@ export const CmdInitElectron = (program:Command)=>program
|
|
31
38
|
.alias('initelectron')
|
32
39
|
.description('对当前目录进行项目初始化,创建Electron基础环境')
|
33
40
|
.action(async (opt) => {
|
34
|
-
checkProject();
|
41
|
+
//checkProject();
|
35
42
|
SLogger.info(`开始初始化设置当前目录 ${PROJECT_PATH}`);
|
36
43
|
await Promise.all([
|
37
44
|
copyData(),
|
package/src/Command/Route.ts
CHANGED
@@ -12,6 +12,7 @@ import { CmdInitElectron } from './InitElectron';
|
|
12
12
|
|
13
13
|
export async function cliRoute(){
|
14
14
|
CmdInit(program);
|
15
|
+
CmdInitElectron(program);
|
15
16
|
CmdNode(program);
|
16
17
|
CmdRelease(program);
|
17
18
|
CmdMapPath(program);
|
@@ -19,6 +20,5 @@ export async function cliRoute(){
|
|
19
20
|
CmdGenSchema(program);
|
20
21
|
CmdExpandMacro(program);
|
21
22
|
CmdGenI18n(program);
|
22
|
-
CmdInitElectron(program);
|
23
23
|
program.parse(process.argv);
|
24
24
|
}
|
package/tsconfig.json
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"allowJs": true,
|
4
|
+
"strict": true,
|
5
|
+
"target": "ES2022",
|
6
|
+
"module": "commonjs",
|
7
|
+
"moduleResolution": "node",
|
8
|
+
"esModuleInterop": true,
|
9
|
+
"outDir": "./dist",
|
10
|
+
"declaration": true,
|
11
|
+
"baseUrl": ".",
|
12
|
+
"emitDecoratorMetadata": true,
|
13
|
+
"experimentalDecorators": true,
|
14
|
+
"paths": {
|
15
|
+
"@src/*": ["./src/*"],
|
16
|
+
"@/*" : ["./*"],
|
17
|
+
"@" : ["./src/index"]
|
18
|
+
}
|
19
|
+
},
|
20
|
+
"include": ["./src/**/*.ts", "./src/**/*.js","./jest/**/*.ts"],
|
21
|
+
"exclude": ["./node_modules/**/*"]
|
22
|
+
}
|