@simplysm/sd-cli 11.0.40 → 11.1.2
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/build-cluster.d.ts +1 -1
- package/dist/build-cluster.js +181 -181
- package/dist/build-tools/SdCliCordova.d.ts +21 -21
- package/dist/build-tools/SdCliCordova.js +217 -217
- package/dist/build-tools/SdCliIndexFileGenerator.d.ts +5 -5
- package/dist/build-tools/SdCliIndexFileGenerator.js +50 -50
- package/dist/build-tools/SdCliNgRoutesFileGenerator.d.ts +4 -4
- package/dist/build-tools/SdCliNgRoutesFileGenerator.js +57 -57
- package/dist/build-tools/SdLinter.d.ts +5 -5
- package/dist/build-tools/SdLinter.js +54 -54
- package/dist/build-tools/SdNgBundler.d.ts +34 -35
- package/dist/build-tools/SdNgBundler.js +534 -533
- package/dist/build-tools/SdNgBundler.js.map +1 -1
- package/dist/build-tools/SdNgBundlerContext.d.ts +15 -16
- package/dist/build-tools/SdNgBundlerContext.js +97 -97
- package/dist/build-tools/SdNgBundlerContext.js.map +1 -1
- package/dist/build-tools/SdTsBundler.d.ts +15 -15
- package/dist/build-tools/SdTsBundler.js +87 -87
- package/dist/build-tools/SdTsCompiler.d.ts +29 -29
- package/dist/build-tools/SdTsCompiler.js +227 -227
- package/dist/builders/SdCliClientBuilder.d.ts +18 -18
- package/dist/builders/SdCliClientBuilder.js +129 -129
- package/dist/builders/SdCliJsLibLinter.d.ts +14 -14
- package/dist/builders/SdCliJsLibLinter.js +59 -59
- package/dist/builders/SdCliServerBuilder.d.ts +20 -20
- package/dist/builders/SdCliServerBuilder.js +215 -215
- package/dist/builders/SdCliTsLibBuilder.d.ts +17 -17
- package/dist/builders/SdCliTsLibBuilder.js +79 -79
- package/dist/commons.d.ts +132 -132
- package/dist/commons.js +1 -1
- package/dist/entry/SdCliElectron.d.ts +12 -12
- package/dist/entry/SdCliElectron.js +99 -99
- package/dist/entry/SdCliLocalUpdate.d.ts +12 -12
- package/dist/entry/SdCliLocalUpdate.js +90 -90
- package/dist/entry/SdCliProject.d.ts +26 -26
- package/dist/entry/SdCliProject.js +477 -477
- package/dist/index.d.ts +19 -19
- package/dist/index.js +19 -19
- package/dist/sd-cli.d.ts +2 -2
- package/dist/sd-cli.js +210 -210
- package/dist/server-worker.d.ts +1 -1
- package/dist/server-worker.js +38 -38
- package/dist/utils/SdCliBuildResultUtil.d.ts +6 -6
- package/dist/utils/SdCliBuildResultUtil.js +37 -37
- package/dist/utils/SdMemoryLoadResultCache.d.ts +10 -9
- package/dist/utils/SdMemoryLoadResultCache.js +36 -34
- package/dist/utils/SdMemoryLoadResultCache.js.map +1 -1
- package/dist/utils/SdSourceFileCache.d.ts +6 -6
- package/dist/utils/SdSourceFileCache.js +21 -14
- package/dist/utils/SdSourceFileCache.js.map +1 -1
- package/package.json +18 -18
- package/src/build-tools/SdNgBundler.ts +30 -36
- package/src/build-tools/SdNgBundlerContext.ts +11 -11
- package/src/utils/SdMemoryLoadResultCache.ts +4 -1
- package/src/utils/SdSourceFileCache.ts +10 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export * from "./build-tools/SdCliCordova";
|
|
2
|
-
export * from "./build-tools/SdCliIndexFileGenerator";
|
|
3
|
-
export * from "./build-tools/SdCliNgRoutesFileGenerator";
|
|
4
|
-
export * from "./build-tools/SdLinter";
|
|
5
|
-
export * from "./build-tools/SdNgBundler";
|
|
6
|
-
export * from "./build-tools/SdNgBundlerContext";
|
|
7
|
-
export * from "./build-tools/SdTsBundler";
|
|
8
|
-
export * from "./build-tools/SdTsCompiler";
|
|
9
|
-
export * from "./builders/SdCliClientBuilder";
|
|
10
|
-
export * from "./builders/SdCliJsLibLinter";
|
|
11
|
-
export * from "./builders/SdCliServerBuilder";
|
|
12
|
-
export * from "./builders/SdCliTsLibBuilder";
|
|
13
|
-
export * from "./commons";
|
|
14
|
-
export * from "./entry/SdCliElectron";
|
|
15
|
-
export * from "./entry/SdCliLocalUpdate";
|
|
16
|
-
export * from "./entry/SdCliProject";
|
|
17
|
-
export * from "./utils/SdCliBuildResultUtil";
|
|
18
|
-
export * from "./utils/SdMemoryLoadResultCache";
|
|
19
|
-
export * from "./utils/SdSourceFileCache";
|
|
1
|
+
export * from "./build-tools/SdCliCordova";
|
|
2
|
+
export * from "./build-tools/SdCliIndexFileGenerator";
|
|
3
|
+
export * from "./build-tools/SdCliNgRoutesFileGenerator";
|
|
4
|
+
export * from "./build-tools/SdLinter";
|
|
5
|
+
export * from "./build-tools/SdNgBundler";
|
|
6
|
+
export * from "./build-tools/SdNgBundlerContext";
|
|
7
|
+
export * from "./build-tools/SdTsBundler";
|
|
8
|
+
export * from "./build-tools/SdTsCompiler";
|
|
9
|
+
export * from "./builders/SdCliClientBuilder";
|
|
10
|
+
export * from "./builders/SdCliJsLibLinter";
|
|
11
|
+
export * from "./builders/SdCliServerBuilder";
|
|
12
|
+
export * from "./builders/SdCliTsLibBuilder";
|
|
13
|
+
export * from "./commons";
|
|
14
|
+
export * from "./entry/SdCliElectron";
|
|
15
|
+
export * from "./entry/SdCliLocalUpdate";
|
|
16
|
+
export * from "./entry/SdCliProject";
|
|
17
|
+
export * from "./utils/SdCliBuildResultUtil";
|
|
18
|
+
export * from "./utils/SdMemoryLoadResultCache";
|
|
19
|
+
export * from "./utils/SdSourceFileCache";
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export * from "./build-tools/SdCliCordova";
|
|
2
|
-
export * from "./build-tools/SdCliIndexFileGenerator";
|
|
3
|
-
export * from "./build-tools/SdCliNgRoutesFileGenerator";
|
|
4
|
-
export * from "./build-tools/SdLinter";
|
|
5
|
-
export * from "./build-tools/SdNgBundler";
|
|
6
|
-
export * from "./build-tools/SdNgBundlerContext";
|
|
7
|
-
export * from "./build-tools/SdTsBundler";
|
|
8
|
-
export * from "./build-tools/SdTsCompiler";
|
|
9
|
-
export * from "./builders/SdCliClientBuilder";
|
|
10
|
-
export * from "./builders/SdCliJsLibLinter";
|
|
11
|
-
export * from "./builders/SdCliServerBuilder";
|
|
12
|
-
export * from "./builders/SdCliTsLibBuilder";
|
|
13
|
-
export * from "./commons";
|
|
14
|
-
export * from "./entry/SdCliElectron";
|
|
15
|
-
export * from "./entry/SdCliLocalUpdate";
|
|
16
|
-
export * from "./entry/SdCliProject";
|
|
17
|
-
export * from "./utils/SdCliBuildResultUtil";
|
|
18
|
-
export * from "./utils/SdMemoryLoadResultCache";
|
|
19
|
-
export * from "./utils/SdSourceFileCache";
|
|
1
|
+
export * from "./build-tools/SdCliCordova";
|
|
2
|
+
export * from "./build-tools/SdCliIndexFileGenerator";
|
|
3
|
+
export * from "./build-tools/SdCliNgRoutesFileGenerator";
|
|
4
|
+
export * from "./build-tools/SdLinter";
|
|
5
|
+
export * from "./build-tools/SdNgBundler";
|
|
6
|
+
export * from "./build-tools/SdNgBundlerContext";
|
|
7
|
+
export * from "./build-tools/SdTsBundler";
|
|
8
|
+
export * from "./build-tools/SdTsCompiler";
|
|
9
|
+
export * from "./builders/SdCliClientBuilder";
|
|
10
|
+
export * from "./builders/SdCliJsLibLinter";
|
|
11
|
+
export * from "./builders/SdCliServerBuilder";
|
|
12
|
+
export * from "./builders/SdCliTsLibBuilder";
|
|
13
|
+
export * from "./commons";
|
|
14
|
+
export * from "./entry/SdCliElectron";
|
|
15
|
+
export * from "./entry/SdCliLocalUpdate";
|
|
16
|
+
export * from "./entry/SdCliProject";
|
|
17
|
+
export * from "./utils/SdCliBuildResultUtil";
|
|
18
|
+
export * from "./utils/SdMemoryLoadResultCache";
|
|
19
|
+
export * from "./utils/SdSourceFileCache";
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
package/dist/sd-cli.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#!/usr/bin/env node --es-module-specifier-resolution=node --no-warnings --experimental-import-meta-resolve
|
|
2
|
-
export {};
|
|
1
|
+
#!/usr/bin/env node --es-module-specifier-resolution=node --no-warnings --experimental-import-meta-resolve
|
|
2
|
+
export {};
|
package/dist/sd-cli.js
CHANGED
|
@@ -1,211 +1,211 @@
|
|
|
1
|
-
#!/usr/bin/env node --es-module-specifier-resolution=node --no-warnings --experimental-import-meta-resolve
|
|
2
|
-
import yargs from "yargs";
|
|
3
|
-
import { hideBin } from "yargs/helpers";
|
|
4
|
-
import { SdCliProject } from "./entry/SdCliProject";
|
|
5
|
-
import { Logger, LoggerSeverity } from "@simplysm/sd-core-node";
|
|
6
|
-
import { EventEmitter } from "events";
|
|
7
|
-
import { SdCliElectron } from "./entry/SdCliElectron";
|
|
8
|
-
import { SdCliLocalUpdate } from "./entry/SdCliLocalUpdate";
|
|
9
|
-
import { SdCliCordova } from "./build-tools/SdCliCordova";
|
|
10
|
-
Error.stackTraceLimit = Infinity;
|
|
11
|
-
EventEmitter.defaultMaxListeners = 0;
|
|
12
|
-
const argv = (await yargs(hideBin(process.argv))
|
|
13
|
-
.help("help", "도움말")
|
|
14
|
-
.alias("help", "h")
|
|
15
|
-
.options({
|
|
16
|
-
debug: {
|
|
17
|
-
type: "boolean",
|
|
18
|
-
describe: "디버그 로그를 표시할 것인지 여부",
|
|
19
|
-
default: false
|
|
20
|
-
}
|
|
21
|
-
})
|
|
22
|
-
.command("local-update", "로컬 라이브러리 업데이트를 수행합니다.", (cmd) => cmd.version(false).hide("help").hide("debug")
|
|
23
|
-
.options({
|
|
24
|
-
config: {
|
|
25
|
-
string: true,
|
|
26
|
-
describe: "simplysm.cjs 파일 경로"
|
|
27
|
-
},
|
|
28
|
-
options: {
|
|
29
|
-
string: true,
|
|
30
|
-
array: true,
|
|
31
|
-
describe: "옵션 설정"
|
|
32
|
-
}
|
|
33
|
-
}))
|
|
34
|
-
.command("watch", "프로젝트의 각 패키지에 대한 변경감지 빌드를 수행합니다.", (cmd) => cmd.version(false).hide("help").hide("debug")
|
|
35
|
-
.options({
|
|
36
|
-
config: {
|
|
37
|
-
string: true,
|
|
38
|
-
describe: "simplysm.cjs 파일 경로"
|
|
39
|
-
},
|
|
40
|
-
options: {
|
|
41
|
-
string: true,
|
|
42
|
-
array: true,
|
|
43
|
-
describe: "옵션 설정"
|
|
44
|
-
},
|
|
45
|
-
packages: {
|
|
46
|
-
string: true,
|
|
47
|
-
array: true,
|
|
48
|
-
describe: "수행할 패키지 설정"
|
|
49
|
-
}
|
|
50
|
-
}))
|
|
51
|
-
.command("build", "프로젝트의 각 패키지에 대한 빌드를 수행합니다.", (cmd) => cmd.version(false).hide("help").hide("debug")
|
|
52
|
-
.options({
|
|
53
|
-
config: {
|
|
54
|
-
string: true,
|
|
55
|
-
describe: "simplysm.cjs 파일 경로"
|
|
56
|
-
},
|
|
57
|
-
options: {
|
|
58
|
-
string: true,
|
|
59
|
-
array: true,
|
|
60
|
-
describe: "옵션 설정"
|
|
61
|
-
},
|
|
62
|
-
packages: {
|
|
63
|
-
string: true,
|
|
64
|
-
array: true,
|
|
65
|
-
describe: "수행할 패키지 설정"
|
|
66
|
-
}
|
|
67
|
-
}))
|
|
68
|
-
.command("publish", "프로젝트의 각 패키지를 배포합니다.", (cmd) => cmd.version(false).hide("help").hide("debug")
|
|
69
|
-
.options({
|
|
70
|
-
noBuild: {
|
|
71
|
-
type: "boolean",
|
|
72
|
-
describe: "빌드를 하지않고 배포합니다.",
|
|
73
|
-
default: false
|
|
74
|
-
},
|
|
75
|
-
config: {
|
|
76
|
-
type: "string",
|
|
77
|
-
describe: "simplysm.cjs 파일 경로"
|
|
78
|
-
},
|
|
79
|
-
options: {
|
|
80
|
-
type: "string",
|
|
81
|
-
array: true,
|
|
82
|
-
describe: "옵션 설정"
|
|
83
|
-
},
|
|
84
|
-
packages: {
|
|
85
|
-
type: "string",
|
|
86
|
-
array: true,
|
|
87
|
-
describe: "수행할 패키지 설정"
|
|
88
|
-
}
|
|
89
|
-
}))
|
|
90
|
-
.command("run-electron <package>", "변경감지중인 플랫폼을 ELECTRON 앱 형태로 띄웁니다.", (cmd) => cmd
|
|
91
|
-
.positional("package", {
|
|
92
|
-
type: "string",
|
|
93
|
-
describe: "패키지명",
|
|
94
|
-
demandOption: true
|
|
95
|
-
})
|
|
96
|
-
.options({
|
|
97
|
-
config: {
|
|
98
|
-
type: "string",
|
|
99
|
-
describe: "simplysm.json 파일 경로"
|
|
100
|
-
},
|
|
101
|
-
options: {
|
|
102
|
-
type: "string",
|
|
103
|
-
array: true,
|
|
104
|
-
describe: "옵션 설정"
|
|
105
|
-
}
|
|
106
|
-
}))
|
|
107
|
-
.command("build-electron-for-dev <package>", "변경감지중인 플랫폼을 ELECTRON 앱 형태로 띄웁니다.", (cmd) => cmd
|
|
108
|
-
.positional("package", {
|
|
109
|
-
type: "string",
|
|
110
|
-
describe: "패키지명",
|
|
111
|
-
demandOption: true
|
|
112
|
-
})
|
|
113
|
-
.options({
|
|
114
|
-
config: {
|
|
115
|
-
type: "string",
|
|
116
|
-
describe: "simplysm.json 파일 경로"
|
|
117
|
-
},
|
|
118
|
-
options: {
|
|
119
|
-
type: "string",
|
|
120
|
-
array: true,
|
|
121
|
-
describe: "옵션 설정"
|
|
122
|
-
}
|
|
123
|
-
}))
|
|
124
|
-
.command("run-cordova <platform> <package> [url]", "변경감지중인 플랫폼을 코도바 디바이스에 앱 형태로 띄웁니다.", (cmd) => cmd
|
|
125
|
-
.positional("platform", {
|
|
126
|
-
type: "string",
|
|
127
|
-
describe: "빌드 플랫폼(android,...)",
|
|
128
|
-
demandOption: true
|
|
129
|
-
})
|
|
130
|
-
.positional("package", {
|
|
131
|
-
type: "string",
|
|
132
|
-
describe: "패키지명",
|
|
133
|
-
demandOption: true
|
|
134
|
-
})
|
|
135
|
-
.positional("url", {
|
|
136
|
-
type: "string",
|
|
137
|
-
describe: "Webview로 오픈할 URL",
|
|
138
|
-
demandOption: true
|
|
139
|
-
}))
|
|
140
|
-
.parseAsync());
|
|
141
|
-
if (Boolean(argv.debug)) {
|
|
142
|
-
process.env["SD_DEBUG"] = "true";
|
|
143
|
-
Logger.setConfig({
|
|
144
|
-
console: {
|
|
145
|
-
level: LoggerSeverity.debug
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
Logger.setConfig({
|
|
151
|
-
dot: true
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
if (argv._[0] === "local-update") {
|
|
155
|
-
await SdCliLocalUpdate.runAsync({
|
|
156
|
-
confFileRelPath: argv.config ?? "simplysm.cjs",
|
|
157
|
-
optNames: argv.options ?? [],
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
else if (argv._[0] === "watch") {
|
|
161
|
-
await SdCliProject
|
|
162
|
-
.watchAsync({
|
|
163
|
-
confFileRelPath: argv.config ?? "simplysm.cjs",
|
|
164
|
-
optNames: argv.options ?? [],
|
|
165
|
-
pkgNames: argv.packages ?? []
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
else if (argv._[0] === "build") {
|
|
169
|
-
await SdCliProject
|
|
170
|
-
.buildAsync({
|
|
171
|
-
confFileRelPath: argv.config ?? "simplysm.cjs",
|
|
172
|
-
optNames: argv.options ?? [],
|
|
173
|
-
pkgNames: argv.packages ?? []
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
else if (argv._[0] === "publish") {
|
|
177
|
-
await SdCliProject
|
|
178
|
-
.publishAsync({
|
|
179
|
-
noBuild: argv.noBuild,
|
|
180
|
-
confFileRelPath: argv.config ?? "simplysm.cjs",
|
|
181
|
-
optNames: argv.options ?? [],
|
|
182
|
-
pkgNames: argv.packages ?? []
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
else if (argv._[0] === "run-electron") {
|
|
186
|
-
await SdCliElectron
|
|
187
|
-
.runAsync({
|
|
188
|
-
confFileRelPath: argv.config ?? "simplysm.cjs",
|
|
189
|
-
optNames: argv.options ?? [],
|
|
190
|
-
pkgName: argv.package
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
else if (argv._[0] === "build-electron-for-dev") {
|
|
194
|
-
await SdCliElectron
|
|
195
|
-
.buildForDevAsync({
|
|
196
|
-
confFileRelPath: argv.config ?? "simplysm.cjs",
|
|
197
|
-
optNames: argv.options ?? [],
|
|
198
|
-
pkgName: argv.package
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
else if (argv._[0] === "run-cordova") {
|
|
202
|
-
await SdCliCordova.runWebviewOnDeviceAsync({
|
|
203
|
-
platform: argv.platform,
|
|
204
|
-
pkgName: argv.package,
|
|
205
|
-
url: argv.url
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
else {
|
|
209
|
-
throw new Error(`명령어가 잘못 되었습니다.\n\t${argv._[0]}\n`);
|
|
210
|
-
}
|
|
1
|
+
#!/usr/bin/env node --es-module-specifier-resolution=node --no-warnings --experimental-import-meta-resolve
|
|
2
|
+
import yargs from "yargs";
|
|
3
|
+
import { hideBin } from "yargs/helpers";
|
|
4
|
+
import { SdCliProject } from "./entry/SdCliProject";
|
|
5
|
+
import { Logger, LoggerSeverity } from "@simplysm/sd-core-node";
|
|
6
|
+
import { EventEmitter } from "events";
|
|
7
|
+
import { SdCliElectron } from "./entry/SdCliElectron";
|
|
8
|
+
import { SdCliLocalUpdate } from "./entry/SdCliLocalUpdate";
|
|
9
|
+
import { SdCliCordova } from "./build-tools/SdCliCordova";
|
|
10
|
+
Error.stackTraceLimit = Infinity;
|
|
11
|
+
EventEmitter.defaultMaxListeners = 0;
|
|
12
|
+
const argv = (await yargs(hideBin(process.argv))
|
|
13
|
+
.help("help", "도움말")
|
|
14
|
+
.alias("help", "h")
|
|
15
|
+
.options({
|
|
16
|
+
debug: {
|
|
17
|
+
type: "boolean",
|
|
18
|
+
describe: "디버그 로그를 표시할 것인지 여부",
|
|
19
|
+
default: false
|
|
20
|
+
}
|
|
21
|
+
})
|
|
22
|
+
.command("local-update", "로컬 라이브러리 업데이트를 수행합니다.", (cmd) => cmd.version(false).hide("help").hide("debug")
|
|
23
|
+
.options({
|
|
24
|
+
config: {
|
|
25
|
+
string: true,
|
|
26
|
+
describe: "simplysm.cjs 파일 경로"
|
|
27
|
+
},
|
|
28
|
+
options: {
|
|
29
|
+
string: true,
|
|
30
|
+
array: true,
|
|
31
|
+
describe: "옵션 설정"
|
|
32
|
+
}
|
|
33
|
+
}))
|
|
34
|
+
.command("watch", "프로젝트의 각 패키지에 대한 변경감지 빌드를 수행합니다.", (cmd) => cmd.version(false).hide("help").hide("debug")
|
|
35
|
+
.options({
|
|
36
|
+
config: {
|
|
37
|
+
string: true,
|
|
38
|
+
describe: "simplysm.cjs 파일 경로"
|
|
39
|
+
},
|
|
40
|
+
options: {
|
|
41
|
+
string: true,
|
|
42
|
+
array: true,
|
|
43
|
+
describe: "옵션 설정"
|
|
44
|
+
},
|
|
45
|
+
packages: {
|
|
46
|
+
string: true,
|
|
47
|
+
array: true,
|
|
48
|
+
describe: "수행할 패키지 설정"
|
|
49
|
+
}
|
|
50
|
+
}))
|
|
51
|
+
.command("build", "프로젝트의 각 패키지에 대한 빌드를 수행합니다.", (cmd) => cmd.version(false).hide("help").hide("debug")
|
|
52
|
+
.options({
|
|
53
|
+
config: {
|
|
54
|
+
string: true,
|
|
55
|
+
describe: "simplysm.cjs 파일 경로"
|
|
56
|
+
},
|
|
57
|
+
options: {
|
|
58
|
+
string: true,
|
|
59
|
+
array: true,
|
|
60
|
+
describe: "옵션 설정"
|
|
61
|
+
},
|
|
62
|
+
packages: {
|
|
63
|
+
string: true,
|
|
64
|
+
array: true,
|
|
65
|
+
describe: "수행할 패키지 설정"
|
|
66
|
+
}
|
|
67
|
+
}))
|
|
68
|
+
.command("publish", "프로젝트의 각 패키지를 배포합니다.", (cmd) => cmd.version(false).hide("help").hide("debug")
|
|
69
|
+
.options({
|
|
70
|
+
noBuild: {
|
|
71
|
+
type: "boolean",
|
|
72
|
+
describe: "빌드를 하지않고 배포합니다.",
|
|
73
|
+
default: false
|
|
74
|
+
},
|
|
75
|
+
config: {
|
|
76
|
+
type: "string",
|
|
77
|
+
describe: "simplysm.cjs 파일 경로"
|
|
78
|
+
},
|
|
79
|
+
options: {
|
|
80
|
+
type: "string",
|
|
81
|
+
array: true,
|
|
82
|
+
describe: "옵션 설정"
|
|
83
|
+
},
|
|
84
|
+
packages: {
|
|
85
|
+
type: "string",
|
|
86
|
+
array: true,
|
|
87
|
+
describe: "수행할 패키지 설정"
|
|
88
|
+
}
|
|
89
|
+
}))
|
|
90
|
+
.command("run-electron <package>", "변경감지중인 플랫폼을 ELECTRON 앱 형태로 띄웁니다.", (cmd) => cmd
|
|
91
|
+
.positional("package", {
|
|
92
|
+
type: "string",
|
|
93
|
+
describe: "패키지명",
|
|
94
|
+
demandOption: true
|
|
95
|
+
})
|
|
96
|
+
.options({
|
|
97
|
+
config: {
|
|
98
|
+
type: "string",
|
|
99
|
+
describe: "simplysm.json 파일 경로"
|
|
100
|
+
},
|
|
101
|
+
options: {
|
|
102
|
+
type: "string",
|
|
103
|
+
array: true,
|
|
104
|
+
describe: "옵션 설정"
|
|
105
|
+
}
|
|
106
|
+
}))
|
|
107
|
+
.command("build-electron-for-dev <package>", "변경감지중인 플랫폼을 ELECTRON 앱 형태로 띄웁니다.", (cmd) => cmd
|
|
108
|
+
.positional("package", {
|
|
109
|
+
type: "string",
|
|
110
|
+
describe: "패키지명",
|
|
111
|
+
demandOption: true
|
|
112
|
+
})
|
|
113
|
+
.options({
|
|
114
|
+
config: {
|
|
115
|
+
type: "string",
|
|
116
|
+
describe: "simplysm.json 파일 경로"
|
|
117
|
+
},
|
|
118
|
+
options: {
|
|
119
|
+
type: "string",
|
|
120
|
+
array: true,
|
|
121
|
+
describe: "옵션 설정"
|
|
122
|
+
}
|
|
123
|
+
}))
|
|
124
|
+
.command("run-cordova <platform> <package> [url]", "변경감지중인 플랫폼을 코도바 디바이스에 앱 형태로 띄웁니다.", (cmd) => cmd
|
|
125
|
+
.positional("platform", {
|
|
126
|
+
type: "string",
|
|
127
|
+
describe: "빌드 플랫폼(android,...)",
|
|
128
|
+
demandOption: true
|
|
129
|
+
})
|
|
130
|
+
.positional("package", {
|
|
131
|
+
type: "string",
|
|
132
|
+
describe: "패키지명",
|
|
133
|
+
demandOption: true
|
|
134
|
+
})
|
|
135
|
+
.positional("url", {
|
|
136
|
+
type: "string",
|
|
137
|
+
describe: "Webview로 오픈할 URL",
|
|
138
|
+
demandOption: true
|
|
139
|
+
}))
|
|
140
|
+
.parseAsync());
|
|
141
|
+
if (Boolean(argv.debug)) {
|
|
142
|
+
process.env["SD_DEBUG"] = "true";
|
|
143
|
+
Logger.setConfig({
|
|
144
|
+
console: {
|
|
145
|
+
level: LoggerSeverity.debug
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
Logger.setConfig({
|
|
151
|
+
dot: true
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
if (argv._[0] === "local-update") {
|
|
155
|
+
await SdCliLocalUpdate.runAsync({
|
|
156
|
+
confFileRelPath: argv.config ?? "simplysm.cjs",
|
|
157
|
+
optNames: argv.options ?? [],
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
else if (argv._[0] === "watch") {
|
|
161
|
+
await SdCliProject
|
|
162
|
+
.watchAsync({
|
|
163
|
+
confFileRelPath: argv.config ?? "simplysm.cjs",
|
|
164
|
+
optNames: argv.options ?? [],
|
|
165
|
+
pkgNames: argv.packages ?? []
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
else if (argv._[0] === "build") {
|
|
169
|
+
await SdCliProject
|
|
170
|
+
.buildAsync({
|
|
171
|
+
confFileRelPath: argv.config ?? "simplysm.cjs",
|
|
172
|
+
optNames: argv.options ?? [],
|
|
173
|
+
pkgNames: argv.packages ?? []
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
else if (argv._[0] === "publish") {
|
|
177
|
+
await SdCliProject
|
|
178
|
+
.publishAsync({
|
|
179
|
+
noBuild: argv.noBuild,
|
|
180
|
+
confFileRelPath: argv.config ?? "simplysm.cjs",
|
|
181
|
+
optNames: argv.options ?? [],
|
|
182
|
+
pkgNames: argv.packages ?? []
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
else if (argv._[0] === "run-electron") {
|
|
186
|
+
await SdCliElectron
|
|
187
|
+
.runAsync({
|
|
188
|
+
confFileRelPath: argv.config ?? "simplysm.cjs",
|
|
189
|
+
optNames: argv.options ?? [],
|
|
190
|
+
pkgName: argv.package
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
else if (argv._[0] === "build-electron-for-dev") {
|
|
194
|
+
await SdCliElectron
|
|
195
|
+
.buildForDevAsync({
|
|
196
|
+
confFileRelPath: argv.config ?? "simplysm.cjs",
|
|
197
|
+
optNames: argv.options ?? [],
|
|
198
|
+
pkgName: argv.package
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
else if (argv._[0] === "run-cordova") {
|
|
202
|
+
await SdCliCordova.runWebviewOnDeviceAsync({
|
|
203
|
+
platform: argv.platform,
|
|
204
|
+
pkgName: argv.package,
|
|
205
|
+
url: argv.url
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
throw new Error(`명령어가 잘못 되었습니다.\n\t${argv._[0]}\n`);
|
|
210
|
+
}
|
|
211
211
|
//# sourceMappingURL=sd-cli.js.map
|
package/dist/server-worker.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/server-worker.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { EventEmitter } from "events";
|
|
2
|
-
import { Logger, LoggerSeverity } from "@simplysm/sd-core-node";
|
|
3
|
-
import path from "path";
|
|
4
|
-
import { pathToFileURL } from "url";
|
|
5
|
-
Error.stackTraceLimit = Infinity;
|
|
6
|
-
EventEmitter.defaultMaxListeners = 0;
|
|
7
|
-
if (Boolean(process.env["SD_DEBUG"])) {
|
|
8
|
-
Logger.setConfig({
|
|
9
|
-
console: {
|
|
10
|
-
level: LoggerSeverity.debug
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
Logger.setConfig({
|
|
16
|
-
dot: true
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
const logger = Logger.get(["simplysm", "sd-cli", "server-worker"]);
|
|
20
|
-
const pkgPath = process.argv[2];
|
|
21
|
-
const mainFilePath = path.resolve(pkgPath, "dist/main.js");
|
|
22
|
-
const serverModule = await import(pathToFileURL(mainFilePath).href);
|
|
23
|
-
const server = serverModule.default;
|
|
24
|
-
if (server === undefined) {
|
|
25
|
-
logger.error(`${mainFilePath}(0, 0): 'SdServiceServer'를 'export'해야 합니다.`);
|
|
26
|
-
process.exit();
|
|
27
|
-
}
|
|
28
|
-
server.on("ready", () => {
|
|
29
|
-
process.send({ port: server.options.port });
|
|
30
|
-
});
|
|
31
|
-
process.on("message", (message) => {
|
|
32
|
-
if (message.type === "setPathProxy") {
|
|
33
|
-
server.pathProxy = message.pathProxy;
|
|
34
|
-
}
|
|
35
|
-
if (message.type === "broadcastReload") {
|
|
36
|
-
server.broadcastReload();
|
|
37
|
-
}
|
|
38
|
-
});
|
|
1
|
+
import { EventEmitter } from "events";
|
|
2
|
+
import { Logger, LoggerSeverity } from "@simplysm/sd-core-node";
|
|
3
|
+
import path from "path";
|
|
4
|
+
import { pathToFileURL } from "url";
|
|
5
|
+
Error.stackTraceLimit = Infinity;
|
|
6
|
+
EventEmitter.defaultMaxListeners = 0;
|
|
7
|
+
if (Boolean(process.env["SD_DEBUG"])) {
|
|
8
|
+
Logger.setConfig({
|
|
9
|
+
console: {
|
|
10
|
+
level: LoggerSeverity.debug
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
Logger.setConfig({
|
|
16
|
+
dot: true
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
const logger = Logger.get(["simplysm", "sd-cli", "server-worker"]);
|
|
20
|
+
const pkgPath = process.argv[2];
|
|
21
|
+
const mainFilePath = path.resolve(pkgPath, "dist/main.js");
|
|
22
|
+
const serverModule = await import(pathToFileURL(mainFilePath).href);
|
|
23
|
+
const server = serverModule.default;
|
|
24
|
+
if (server === undefined) {
|
|
25
|
+
logger.error(`${mainFilePath}(0, 0): 'SdServiceServer'를 'export'해야 합니다.`);
|
|
26
|
+
process.exit();
|
|
27
|
+
}
|
|
28
|
+
server.on("ready", () => {
|
|
29
|
+
process.send({ port: server.options.port });
|
|
30
|
+
});
|
|
31
|
+
process.on("message", (message) => {
|
|
32
|
+
if (message.type === "setPathProxy") {
|
|
33
|
+
server.pathProxy = message.pathProxy;
|
|
34
|
+
}
|
|
35
|
+
if (message.type === "broadcastReload") {
|
|
36
|
+
server.broadcastReload();
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
39
|
//# sourceMappingURL=server-worker.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
import { ISdCliPackageBuildResult } from "../commons";
|
|
3
|
-
export declare class SdCliBuildResultUtil {
|
|
4
|
-
static convertFromTsDiag(diag: ts.Diagnostic, type: "build" | "check"): ISdCliPackageBuildResult;
|
|
5
|
-
static getMessage(result: ISdCliPackageBuildResult): string;
|
|
6
|
-
}
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
import { ISdCliPackageBuildResult } from "../commons";
|
|
3
|
+
export declare class SdCliBuildResultUtil {
|
|
4
|
+
static convertFromTsDiag(diag: ts.Diagnostic, type: "build" | "check"): ISdCliPackageBuildResult;
|
|
5
|
+
static getMessage(result: ISdCliPackageBuildResult): string;
|
|
6
|
+
}
|