@simplysm/sd-cli 12.7.5 → 12.7.6

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.
Files changed (162) hide show
  1. package/dist/entry/{SdAiCommand.d.ts → sd-cli-ai-command.d.ts} +1 -1
  2. package/dist/entry/{SdAiCommand.js → sd-cli-ai-command.js} +5 -5
  3. package/dist/entry/sd-cli-ai-command.js.map +1 -0
  4. package/dist/entry/{SdCliCordova.d.ts → sd-cli-cordova.d.ts} +1 -1
  5. package/dist/entry/{SdCliCordova.js → sd-cli-cordova.js} +33 -33
  6. package/dist/entry/sd-cli-cordova.js.map +1 -0
  7. package/dist/entry/{SdCliElectron.d.ts → sd-cli-electron.d.ts} +1 -1
  8. package/dist/entry/{SdCliElectron.js → sd-cli-electron.js} +18 -18
  9. package/dist/entry/sd-cli-electron.js.map +1 -0
  10. package/dist/entry/{SdCliLocalUpdate.js → sd-cli-local-update.js} +12 -12
  11. package/dist/entry/sd-cli-local-update.js.map +1 -0
  12. package/dist/entry/{SdCliProject.js → sd-cli-project.js} +36 -36
  13. package/dist/entry/sd-cli-project.js.map +1 -0
  14. package/dist/index.d.ts +30 -30
  15. package/dist/index.js +30 -30
  16. package/dist/index.js.map +1 -1
  17. package/dist/pkg-builders/client/{SdCliNgRoutesFileGenerator.js → sd-cli-ng-routes.file-generator.js} +12 -12
  18. package/dist/pkg-builders/client/sd-cli-ng-routes.file-generator.js.map +1 -0
  19. package/dist/pkg-builders/client/{SdClientBuildRunner.d.ts → sd-client.build-runner.d.ts} +2 -2
  20. package/dist/pkg-builders/client/{SdClientBuildRunner.js → sd-client.build-runner.js} +34 -27
  21. package/dist/pkg-builders/client/sd-client.build-runner.js.map +1 -0
  22. package/dist/pkg-builders/client/{SdNgBundlerContext.js → sd-ng.bundler-context.js} +5 -5
  23. package/dist/pkg-builders/client/sd-ng.bundler-context.js.map +1 -0
  24. package/dist/pkg-builders/client/{SdNgBundler.d.ts → sd-ng.bundler.d.ts} +2 -2
  25. package/dist/pkg-builders/client/{SdNgBundler.js → sd-ng.bundler.js} +55 -37
  26. package/dist/pkg-builders/client/sd-ng.bundler.js.map +1 -0
  27. package/dist/pkg-builders/client/{createSdNgPlugin.d.ts → sd-ng.plugin-creator.d.ts} +1 -1
  28. package/dist/pkg-builders/client/{createSdNgPlugin.js → sd-ng.plugin-creator.js} +17 -17
  29. package/dist/pkg-builders/client/sd-ng.plugin-creator.js.map +1 -0
  30. package/dist/pkg-builders/lib/{SdCliIndexFileGenerator.js → sd-cli-index.file-generator.js} +8 -8
  31. package/dist/pkg-builders/lib/sd-cli-index.file-generator.js.map +1 -0
  32. package/dist/pkg-builders/lib/{SdJsLibBuildRunner.d.ts → sd-js-lib.build-runner.d.ts} +2 -2
  33. package/dist/pkg-builders/lib/{SdJsLibBuildRunner.js → sd-js-lib.build-runner.js} +17 -17
  34. package/dist/pkg-builders/lib/sd-js-lib.build-runner.js.map +1 -0
  35. package/dist/pkg-builders/lib/{SdTsLibBuildRunner.d.ts → sd-ts-lib.build-runner.d.ts} +2 -2
  36. package/dist/pkg-builders/lib/{SdTsLibBuildRunner.js → sd-ts-lib.build-runner.js} +17 -17
  37. package/dist/pkg-builders/lib/sd-ts-lib.build-runner.js.map +1 -0
  38. package/dist/pkg-builders/lib/{SdTsLibBuilder.d.ts → sd-ts-lib.builder.d.ts} +1 -1
  39. package/dist/pkg-builders/lib/{SdTsLibBuilder.js → sd-ts-lib.builder.js} +11 -11
  40. package/dist/pkg-builders/lib/sd-ts-lib.builder.js.map +1 -0
  41. package/dist/pkg-builders/{SdMultiBuildRunner.d.ts → sd-multi.build-runner.d.ts} +2 -2
  42. package/dist/pkg-builders/{SdMultiBuildRunner.js → sd-multi.build-runner.js} +13 -13
  43. package/dist/pkg-builders/sd-multi.build-runner.js.map +1 -0
  44. package/dist/pkg-builders/server/{SdServerBuildRunner.d.ts → sd-server.build-runner.d.ts} +2 -2
  45. package/dist/pkg-builders/server/{SdServerBuildRunner.js → sd-server.build-runner.js} +35 -35
  46. package/dist/pkg-builders/server/sd-server.build-runner.js.map +1 -0
  47. package/dist/pkg-builders/server/{SdServerBundler.d.ts → sd-server.bundler.d.ts} +1 -1
  48. package/dist/pkg-builders/server/{SdServerBundler.js → sd-server.bundler.js} +15 -15
  49. package/dist/pkg-builders/server/sd-server.bundler.js.map +1 -0
  50. package/dist/pkg-builders/server/{createSdServerPlugin.d.ts → sd-server.plugin-creator.d.ts} +1 -1
  51. package/dist/pkg-builders/server/{createSdServerPlugin.js → sd-server.plugin-creator.js} +10 -10
  52. package/dist/pkg-builders/server/sd-server.plugin-creator.js.map +1 -0
  53. package/dist/sd-cli.js +10 -10
  54. package/dist/sd-cli.js.map +1 -1
  55. package/dist/{ts-builder/SdTsCompiler.d.ts → ts-compiler/sd-ts-compiler.d.ts} +1 -1
  56. package/dist/{ts-builder/SdTsCompiler.js → ts-compiler/sd-ts-compiler.js} +60 -60
  57. package/dist/ts-compiler/sd-ts-compiler.js.map +1 -0
  58. package/dist/types/{build-plugin.type.js → build-plugin.types.js} +1 -1
  59. package/dist/types/build-plugin.types.js.map +1 -0
  60. package/dist/types/{build-runner.type.d.ts → build-runner.types.d.ts} +1 -1
  61. package/dist/types/build-runner.types.js +3 -0
  62. package/dist/types/build-runner.types.js.map +1 -0
  63. package/dist/types/{build.type.js → build.types.js} +1 -1
  64. package/dist/types/build.types.js.map +1 -0
  65. package/dist/types/common-configs.types.js +2 -0
  66. package/dist/types/common-configs.types.js.map +1 -0
  67. package/dist/types/config.types.js +2 -0
  68. package/dist/types/config.types.js.map +1 -0
  69. package/dist/types/{ts-compiler.type.d.ts → ts-compiler.types.d.ts} +1 -1
  70. package/dist/types/{ts-compiler.type.js → ts-compiler.types.js} +2 -2
  71. package/dist/types/ts-compiler.types.js.map +1 -0
  72. package/dist/types/{workers.type.d.ts → worker.types.d.ts} +2 -2
  73. package/dist/types/worker.types.js +3 -0
  74. package/dist/types/worker.types.js.map +1 -0
  75. package/dist/utils/{SdCliConvertMessageUtil.d.ts → sd-cli-convert-message.utils.d.ts} +2 -2
  76. package/dist/utils/{SdCliConvertMessageUtil.js → sd-cli-convert-message.utils.js} +7 -7
  77. package/dist/utils/sd-cli-convert-message.utils.js.map +1 -0
  78. package/dist/utils/{SdCliPerformanceTime.js → sd-cli-performance-time.js} +1 -1
  79. package/dist/utils/sd-cli-performance-time.js.map +1 -0
  80. package/dist/workers/{build-runner-worker.js → build-runner.worker.js} +13 -13
  81. package/dist/workers/build-runner.worker.js.map +1 -0
  82. package/dist/workers/{server-worker.js → server.worker.js} +6 -6
  83. package/dist/workers/server.worker.js.map +1 -0
  84. package/package.json +5 -5
  85. package/src/entry/{SdAiCommand.ts → sd-cli-ai-command.ts} +4 -4
  86. package/src/entry/{SdCliCordova.ts → sd-cli-cordova.ts} +32 -32
  87. package/src/entry/{SdCliElectron.ts → sd-cli-electron.ts} +17 -17
  88. package/src/entry/{SdCliLocalUpdate.ts → sd-cli-local-update.ts} +11 -11
  89. package/src/entry/{SdCliProject.ts → sd-cli-project.ts} +36 -36
  90. package/src/index.ts +30 -30
  91. package/src/pkg-builders/client/{SdCliNgRoutesFileGenerator.ts → sd-cli-ng-routes.file-generator.ts} +11 -11
  92. package/src/pkg-builders/client/{SdClientBuildRunner.ts → sd-client.build-runner.ts} +52 -45
  93. package/src/pkg-builders/client/{SdNgBundlerContext.ts → sd-ng.bundler-context.ts} +4 -4
  94. package/src/pkg-builders/client/{SdNgBundler.ts → sd-ng.bundler.ts} +94 -61
  95. package/src/pkg-builders/client/{createSdNgPlugin.ts → sd-ng.plugin-creator.ts} +16 -16
  96. package/src/pkg-builders/lib/{SdCliIndexFileGenerator.ts → sd-cli-index.file-generator.ts} +7 -7
  97. package/src/pkg-builders/lib/{SdJsLibBuildRunner.ts → sd-js-lib.build-runner.ts} +16 -16
  98. package/src/pkg-builders/lib/{SdTsLibBuildRunner.ts → sd-ts-lib.build-runner.ts} +17 -17
  99. package/src/pkg-builders/lib/{SdTsLibBuilder.ts → sd-ts-lib.builder.ts} +10 -10
  100. package/src/pkg-builders/{SdMultiBuildRunner.ts → sd-multi.build-runner.ts} +12 -12
  101. package/src/pkg-builders/server/{SdServerBuildRunner.ts → sd-server.build-runner.ts} +34 -34
  102. package/src/pkg-builders/server/{SdServerBundler.ts → sd-server.bundler.ts} +14 -14
  103. package/src/pkg-builders/server/{createSdServerPlugin.ts → sd-server.plugin-creator.ts} +9 -9
  104. package/src/sd-cli.ts +10 -10
  105. package/src/{ts-builder/SdTsCompiler.ts → ts-compiler/sd-ts-compiler.ts} +60 -60
  106. package/src/types/{build-runner.type.ts → build-runner.types.ts} +1 -1
  107. package/src/types/{ts-compiler.type.ts → ts-compiler.types.ts} +1 -1
  108. package/src/types/{workers.type.ts → worker.types.ts} +2 -2
  109. package/src/utils/{SdCliConvertMessageUtil.ts → sd-cli-convert-message.utils.ts} +6 -6
  110. package/src/workers/{build-runner-worker.ts → build-runner.worker.ts} +12 -12
  111. package/src/workers/{server-worker.ts → server.worker.ts} +5 -5
  112. package/dist/entry/SdAiCommand.js.map +0 -1
  113. package/dist/entry/SdCliCordova.js.map +0 -1
  114. package/dist/entry/SdCliElectron.js.map +0 -1
  115. package/dist/entry/SdCliLocalUpdate.js.map +0 -1
  116. package/dist/entry/SdCliProject.js.map +0 -1
  117. package/dist/pkg-builders/SdMultiBuildRunner.js.map +0 -1
  118. package/dist/pkg-builders/client/SdCliNgRoutesFileGenerator.js.map +0 -1
  119. package/dist/pkg-builders/client/SdClientBuildRunner.js.map +0 -1
  120. package/dist/pkg-builders/client/SdNgBundler.js.map +0 -1
  121. package/dist/pkg-builders/client/SdNgBundlerContext.js.map +0 -1
  122. package/dist/pkg-builders/client/createSdNgPlugin.js.map +0 -1
  123. package/dist/pkg-builders/lib/SdCliIndexFileGenerator.js.map +0 -1
  124. package/dist/pkg-builders/lib/SdJsLibBuildRunner.js.map +0 -1
  125. package/dist/pkg-builders/lib/SdTsLibBuildRunner.js.map +0 -1
  126. package/dist/pkg-builders/lib/SdTsLibBuilder.js.map +0 -1
  127. package/dist/pkg-builders/server/SdServerBuildRunner.js.map +0 -1
  128. package/dist/pkg-builders/server/SdServerBundler.js.map +0 -1
  129. package/dist/pkg-builders/server/createSdServerPlugin.js.map +0 -1
  130. package/dist/ts-builder/SdTsCompiler.js.map +0 -1
  131. package/dist/types/build-plugin.type.js.map +0 -1
  132. package/dist/types/build-runner.type.js +0 -3
  133. package/dist/types/build-runner.type.js.map +0 -1
  134. package/dist/types/build.type.js.map +0 -1
  135. package/dist/types/common-configs.type.js +0 -2
  136. package/dist/types/common-configs.type.js.map +0 -1
  137. package/dist/types/sd-configs.type.js +0 -2
  138. package/dist/types/sd-configs.type.js.map +0 -1
  139. package/dist/types/ts-compiler.type.js.map +0 -1
  140. package/dist/types/workers.type.js +0 -3
  141. package/dist/types/workers.type.js.map +0 -1
  142. package/dist/utils/SdCliConvertMessageUtil.js.map +0 -1
  143. package/dist/utils/SdCliPerformanceTime.js.map +0 -1
  144. package/dist/workers/build-runner-worker.js.map +0 -1
  145. package/dist/workers/server-worker.js.map +0 -1
  146. /package/dist/entry/{SdCliLocalUpdate.d.ts → sd-cli-local-update.d.ts} +0 -0
  147. /package/dist/entry/{SdCliProject.d.ts → sd-cli-project.d.ts} +0 -0
  148. /package/dist/pkg-builders/client/{SdCliNgRoutesFileGenerator.d.ts → sd-cli-ng-routes.file-generator.d.ts} +0 -0
  149. /package/dist/pkg-builders/client/{SdNgBundlerContext.d.ts → sd-ng.bundler-context.d.ts} +0 -0
  150. /package/dist/pkg-builders/lib/{SdCliIndexFileGenerator.d.ts → sd-cli-index.file-generator.d.ts} +0 -0
  151. /package/dist/types/{build-plugin.type.d.ts → build-plugin.types.d.ts} +0 -0
  152. /package/dist/types/{build.type.d.ts → build.types.d.ts} +0 -0
  153. /package/dist/types/{common-configs.type.d.ts → common-configs.types.d.ts} +0 -0
  154. /package/dist/types/{sd-configs.type.d.ts → config.types.d.ts} +0 -0
  155. /package/dist/utils/{SdCliPerformanceTime.d.ts → sd-cli-performance-time.d.ts} +0 -0
  156. /package/dist/workers/{build-runner-worker.d.ts → build-runner.worker.d.ts} +0 -0
  157. /package/dist/workers/{server-worker.d.ts → server.worker.d.ts} +0 -0
  158. /package/src/types/{build-plugin.type.ts → build-plugin.types.ts} +0 -0
  159. /package/src/types/{build.type.ts → build.types.ts} +0 -0
  160. /package/src/types/{common-configs.type.ts → common-configs.types.ts} +0 -0
  161. /package/src/types/{sd-configs.type.ts → config.types.ts} +0 -0
  162. /package/src/utils/{SdCliPerformanceTime.ts → sd-cli-performance-time.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { type CompilerOptions } from "typescript";
2
2
  import esbuild from "esbuild";
3
- import { type ISdBuildMessage } from "./build.type";
3
+ import { type ISdBuildMessage } from "./build.types";
4
4
  import { type TNormPath } from "@simplysm/sd-core-node";
5
5
  export interface SdTsCompilerOptions {
6
6
  pkgPath: TNormPath;
@@ -1,5 +1,5 @@
1
1
  import {} from "typescript";
2
2
  import esbuild from "esbuild";
3
- import {} from "./build.type";
3
+ import {} from "./build.types";
4
4
  import {} from "@simplysm/sd-core-node";
5
- //# sourceMappingURL=ts-compiler.type.js.map
5
+ //# sourceMappingURL=ts-compiler.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ts-compiler.types.js","sourceRoot":"","sources":["../../src/types/ts-compiler.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,MAAM,YAAY,CAAC;AAClD,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAwB,MAAM,eAAe,CAAC;AACrD,OAAO,EAAkB,MAAM,wBAAwB,CAAC"}
@@ -1,5 +1,5 @@
1
- import { type ISdBuildRunnerWorkerRequest } from "./build-runner.type";
2
- import { type ISdBuildMessage, type ISdBuildRunnerResult } from "./build.type";
1
+ import { type ISdBuildRunnerWorkerRequest } from "./build-runner.types";
2
+ import { type ISdBuildMessage, type ISdBuildRunnerResult } from "./build.types";
3
3
  export interface TServerWorkerType {
4
4
  methods: {
5
5
  listen: {
@@ -0,0 +1,3 @@
1
+ import {} from "./build-runner.types";
2
+ import {} from "./build.types";
3
+ //# sourceMappingURL=worker.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker.types.js","sourceRoot":"","sources":["../../src/types/worker.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAmD,MAAM,eAAe,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import ts from "typescript";
2
2
  import { type PartialMessage } from "esbuild";
3
3
  import { ESLint } from "eslint";
4
- import { type ISdBuildMessage } from "../types/build.type";
5
- export declare class SdCliConvertMessageUtil {
4
+ import { type ISdBuildMessage } from "../types/build.types";
5
+ export declare class SdCliConvertMessageUtils {
6
6
  static convertToBuildMessagesFromTsDiag(diags: ts.Diagnostic[]): ISdBuildMessage[];
7
7
  static convertToBuildMessagesFromEsbuild(result: {
8
8
  errors?: PartialMessage[];
@@ -3,9 +3,9 @@ import os from "os";
3
3
  import path from "path";
4
4
  import {} from "esbuild";
5
5
  import { ESLint } from "eslint";
6
- import {} from "../types/build.type";
7
- import { PathUtil } from "@simplysm/sd-core-node";
8
- export class SdCliConvertMessageUtil {
6
+ import {} from "../types/build.types";
7
+ import { PathUtils } from "@simplysm/sd-core-node";
8
+ export class SdCliConvertMessageUtils {
9
9
  static convertToBuildMessagesFromTsDiag(diags) {
10
10
  return diags.map((diag) => {
11
11
  const severity = diag.category === ts.DiagnosticCategory.Error
@@ -17,7 +17,7 @@ export class SdCliConvertMessageUtil {
17
17
  : "message";
18
18
  const code = `TS${diag.code}`;
19
19
  const message = ts.flattenDiagnosticMessageText(diag.messageText, os.EOL);
20
- const filePath = diag.file ? PathUtil.norm(path.resolve(diag.file.fileName)) : undefined;
20
+ const filePath = diag.file ? PathUtils.norm(path.resolve(diag.file.fileName)) : undefined;
21
21
  const position = diag.file && diag.start !== undefined ? diag.file.getLineAndCharacterOfPosition(diag.start) : undefined;
22
22
  const line = position ? position.line + 1 : undefined;
23
23
  const char = position ? position.character + 1 : undefined;
@@ -34,7 +34,7 @@ export class SdCliConvertMessageUtil {
34
34
  }
35
35
  static convertToBuildMessagesFromEsbuild(result, orgPath) {
36
36
  const convertFn = (msg, severity) => {
37
- const filePath = msg.location?.file != null ? PathUtil.norm(orgPath, msg.location.file) : undefined;
37
+ const filePath = msg.location?.file != null ? PathUtils.norm(orgPath, msg.location.file) : undefined;
38
38
  const line = msg.location?.line;
39
39
  const char = msg.location?.column;
40
40
  const code = msg.text.slice(0, msg.text.indexOf(":"));
@@ -56,7 +56,7 @@ export class SdCliConvertMessageUtil {
56
56
  }
57
57
  static convertToBuildMessagesFromEslint(results) {
58
58
  return results.mapMany((result) => result.messages.map((msg) => ({
59
- filePath: PathUtil.norm(result.filePath),
59
+ filePath: PathUtils.norm(result.filePath),
60
60
  line: msg.line,
61
61
  char: msg.column,
62
62
  code: msg.messageId,
@@ -137,4 +137,4 @@ export class SdCliConvertMessageUtil {
137
137
  return str;
138
138
  }
139
139
  }
140
- //# sourceMappingURL=SdCliConvertMessageUtil.js.map
140
+ //# sourceMappingURL=sd-cli-convert-message.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sd-cli-convert-message.utils.js","sourceRoot":"","sources":["../../src/utils/sd-cli-convert-message.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAuB,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAwB,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,MAAM,OAAO,wBAAwB;IACnC,MAAM,CAAC,gCAAgC,CAAC,KAAsB;QAC5D,OAAO,KAAK,CA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,IAAI,IAAI,CAAC,KAAK,CAAC;QAC1E,CAAC;QACD,GAAG,IAAI,IAAI,MAAM,CAAC,IAAI,IAAI,CAAC;QAC3B,GAAG,IAAI,GAAG,MAAM,CAAC,QAAQ,GAAG,CAAC;QAC7B,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YAC9B,GAAG,IAAI,GAAG,MAAM,CAAC,IAAI,GAAG,CAAC;QAC3B,CAAC;QACD,GAAG,IAAI,KAAK,MAAM,CAAC,OAAO,EAAE,CAAC;QAE7B,OAAO,GAAG,CAAC;IACb,CAAC;CACF"}
@@ -37,4 +37,4 @@ ${Array.from(this.#resultMap.entries())
37
37
  ------------------------------------`;
38
38
  }
39
39
  }
40
- //# sourceMappingURL=SdCliPerformanceTime.js.map
40
+ //# sourceMappingURL=sd-cli-performance-time.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sd-cli-performance-time.js","sourceRoot":"","sources":["../../src/utils/sd-cli-performance-time.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,qBAAqB;IAChC,YAAY,GAAG,IAAI,GAAG,EAAkB,CAAC;IACzC,UAAU,GAAG,IAAI,GAAG,EAAkB,CAAC;IAEvC,YAAoB,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;IAAG,CAAC;IAErC,KAAK,CAAC,IAAY;QAChB,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;IACpD,CAAC;IAED,GAAG,CAAC,IAAY;QACd,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,GAAG,IAAI,IAAI;YAAE,MAAM,IAAI,KAAK,EAAE,CAAC;QACnC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,CAAC;QACtD,IA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m/sd-core-node";
2
- import {} from "../types/build.type";
1
+ import { createSdWorker, FsUtils, SdLogger, SdLoggerSeverity } from "@simplysm/sd-core-node";
2
+ import {} from "../types/build.types";
3
3
  import path from "path";
4
- import { SdServerBuildRunner } from "../pkg-builders/server/SdServerBuildRunner";
5
- import { SdClientBuildRunner } from "../pkg-builders/client/SdClientBuildRunner";
6
- import { SdTsLibBuildRunner } from "../pkg-builders/lib/SdTsLibBuildRunner";
7
- import { SdJsLibBuildRunner } from "../pkg-builders/lib/SdJsLibBuildRunner";
8
- import {} from "../types/workers.type";
9
- import {} from "../types/build-runner.type";
4
+ import { SdServerBuildRunner } from "../pkg-builders/server/sd-server.build-runner";
5
+ import { SdClientBuildRunner } from "../pkg-builders/client/sd-client.build-runner";
6
+ import { SdTsLibBuildRunner } from "../pkg-builders/lib/sd-ts-lib.build-runner";
7
+ import { SdJsLibBuildRunner } from "../pkg-builders/lib/sd-js-lib.build-runner";
8
+ import {} from "../types/worker.types";
9
+ import {} from "../types/build-runner.types";
10
10
  import { EventEmitter } from "events";
11
11
  Error.stackTraceLimit = Infinity;
12
12
  EventEmitter.defaultMaxListeners = 0;
13
13
  if (process.env["SD_DEBUG"] != null) {
14
- Logger.setConfig({
14
+ SdLogger.setConfig({
15
15
  console: {
16
- level: LoggerSeverity.debug,
16
+ level: SdLoggerSeverity.debug,
17
17
  },
18
18
  });
19
19
  }
20
20
  else {
21
- Logger.setConfig({
21
+ SdLogger.setConfig({
22
22
  dot: true,
23
23
  });
24
24
  }
@@ -29,7 +29,7 @@ const worker = createSdWorker({
29
29
  ? SdServerBuildRunner
30
30
  : pkgConf.type === "client"
31
31
  ? SdClientBuildRunner
32
- : FsUtil.exists(path.resolve(req.pkgPath, "tsconfig.json"))
32
+ : FsUtils.exists(path.resolve(req.pkgPath, "tsconfig.json"))
33
33
  ? SdTsLibBuildRunner
34
34
  : SdJsLibBuildRunner;
35
35
  const builder = new buildRunnerType(req.projConf, req.pkgPath)
@@ -49,4 +49,4 @@ const worker = createSdWorker({
49
49
  }
50
50
  },
51
51
  });
52
- //# sourceMappingURL=build-runner-worker.js.map
52
+ //# sourceMappingURL=build-runner.worker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-runner.worker.js","sourceRoot":"","sources":["../../src/workers/build-runner.worker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC7F,OAAO,EAAwB,MAAM,sBAAsB,CAAC;AAC5D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAiC,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAoC,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,KAAK,CAAC,eAAe,GAAG,QAAQ,CAAC;AACjC,YAAY,CAAC,mBAAmB,GAAG,CAAC,CAAC;AAErC,IAAI,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,IAAI,EAAE,CAAC;IACpC,QAAQ,CAAC,SAAS,CAAC;QACjB,OAAO,EAAE;YACP,KAAK,EAAE,gBAAgB,CAAC,KAAK;SAC9B;KACF,CAAC,CAAC;AACL,CAAC;KAAM,CAAC;IACN,QAAQ,CAAC,SAAS,CAAC;QACjB,GAAG,EAAE,IAAI;KACV,CAAC,CAAC;AACL,CAAC;AAED,MAAM,MAAM,GAAG,cAAc,CAA2B;IACtD,KAAK,CAAC,GAAG,CAAC,GAAgC;QACxC,MAAM,OAAO,GAAG,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAE,CAAC;QAEnE,MAAM,eAAe,GACnB,OAAO,CAAC,IAAI,KAAK,QAAQ;YACvB,CAAC,CAAC,mBAAmB;YACrB,CAAC,CAAC,OAAO,CAAC,IAAI,KAAK,QAAQ;gBACzB,CAAC,CAAC,mBAAmB;gBACrB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;oBAC1D,CAAC,CAAC,kBAAkB;oBACpB,CAAC,CAAC,kBAAkB,CAAC;QAE7B,MAAM,OAAO,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC;aAC3D,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE;YACjB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACxB,CAAC,CAAC;aACD,EAAE,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,EAAE;YACzB,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;QACjC,CAAC,CAAC,CAAC;QAEL,IAAI,GAAG,CAAC,GAAG,KAAK,OAAO,EAAE,CAAC;YACxB,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,UAAU,EAAE,CAAC;YACvC,OAAO,GAAG,CAAC,aAAa,CAAC;QAC3B,CAAC;aAAM,CAAC;YACN,MAAM,OAAO,CAAC,UAAU,EAAE,CAAC;YAC3B,OAAO;QACT,CAAC;IACH,CAAC;CACF,CAAC,CAAC"}
@@ -1,20 +1,20 @@
1
1
  import path from "path";
2
2
  import { pathToFileURL } from "url";
3
3
  import { SdServiceServer } from "@simplysm/sd-service-server";
4
- import { createSdWorker, Logger, LoggerSeverity } from "@simplysm/sd-core-node";
4
+ import { createSdWorker, SdLogger, SdLoggerSeverity } from "@simplysm/sd-core-node";
5
5
  import { EventEmitter } from "events";
6
- import {} from "../types/workers.type";
6
+ import {} from "../types/worker.types";
7
7
  Error.stackTraceLimit = Infinity;
8
8
  EventEmitter.defaultMaxListeners = 0;
9
9
  if (process.env["SD_DEBUG"] != null) {
10
- Logger.setConfig({
10
+ SdLogger.setConfig({
11
11
  console: {
12
- level: LoggerSeverity.debug,
12
+ level: SdLoggerSeverity.debug,
13
13
  },
14
14
  });
15
15
  }
16
16
  else {
17
- Logger.setConfig({
17
+ SdLogger.setConfig({
18
18
  dot: true,
19
19
  });
20
20
  }
@@ -47,4 +47,4 @@ createSdWorker({
47
47
  server.broadcastReload(changedFileSet);
48
48
  },
49
49
  });
50
- //# sourceMappingURL=server-worker.js.map
50
+ //# sourceMappingURL=server.worker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.worker.js","sourceRoot":"","sources":["../../src/workers/server.worker.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAA0B,MAAM,uBAAuB,CAAC;AAE/D,KAAK,CAAC,eAAe,GAAG,QAAQ,CAAC;AACjC,YAAY,CAAC,mBAAmB,GAAG,CAAC,CAAC;AAErC,IAAI,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,IAAI,EAAE,CAAC;IACpC,QAAQ,CAAC,SAAS,CAAC;QACjB,OAAO,EAAE;YACP,KAAK,EAAE,gBAAgB,CAAC,KAAK;SAC9B;KACF,CAAC,CAAC;AACL,CAAC;KAAM,CAAC;IACN,QAAQ,CAAC,SAAS,CAAC;QACjB,GAAG,EAAE,IAAI;KACV,CAAC,CAAC;AACL,CAAC;AAED,IAAI,MAAuB,CAAC;AAE5B,cAAc,CAAoB;IAChC,KAAK,CAAC,MAAM,CAAC,OAA4C;QACvD,IAAI,MAAM,IAAI,OAAO,EAAE,CAAC;YACtB,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;YAChE,MAAM,YAAY,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC;YACpE,MAAM,UAAU,GAAG,YAAY,CAAC,OAAsC,CAAC;YACvE,IAAI,UAAU,IAAI,IAAI,EAAE,CAAC;gBACvB,MAAM,IAAI,KAAK,CAAC,GAAG,YAAY,4CAA4C,CAAC,CAAC;YAC/E,CAAC;YACD,MAAM,GAAG,UAAU,CAAC;QACtB,CAAC;aAAM,CAAC;YACN,MAAM,GAAG,IAAI,eAAe,CAAC;gBAC3B,QAAQ,EAAE,OAAO,CAAC,GAAG,EAAE;gBACvB,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,OAAO,CAAC,IAAI;aACnB,CAAC,CAAC;YACH,MAAM,MAAM,CAAC,WAAW,EAAE,CAAC;QAC7B,CAAC;QAED,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;IAC7B,CAAC;IACD,YAAY,CAAC,SAA0C;QACrD,MAAM,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IACD,eAAe,CAAC,cAA2B;QACzC,MAAM,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;IACzC,CAAC;CACF,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplysm/sd-cli",
3
- "version": "12.7.5",
3
+ "version": "12.7.6",
4
4
  "description": "심플리즘 패키지 - CLI",
5
5
  "author": "김석래",
6
6
  "repository": {
@@ -22,10 +22,10 @@
22
22
  "@angular/compiler-cli": "^18.2.13",
23
23
  "@anthropic-ai/sdk": "^0.33.1",
24
24
  "@electron/rebuild": "^3.7.1",
25
- "@simplysm/sd-core-common": "12.7.5",
26
- "@simplysm/sd-core-node": "12.7.5",
27
- "@simplysm/sd-service-server": "12.7.5",
28
- "@simplysm/sd-storage": "12.7.5",
25
+ "@simplysm/sd-core-common": "12.7.6",
26
+ "@simplysm/sd-core-node": "12.7.6",
27
+ "@simplysm/sd-service-server": "12.7.6",
28
+ "@simplysm/sd-storage": "12.7.6",
29
29
  "browserslist": "^4.24.3",
30
30
  "cordova": "^12.0.0",
31
31
  "css-has-pseudo": "^7.0.2",
@@ -1,10 +1,10 @@
1
1
  import { SdProcess } from "@simplysm/sd-core-node";
2
- import { NeverEntryError, StringUtil } from "@simplysm/sd-core-common";
2
+ import { NeverEntryError, StringUtils } from "@simplysm/sd-core-common";
3
3
  import Anthropic from "@anthropic-ai/sdk";
4
4
 
5
- export class SdAiCommand {
5
+ export class SdCliAiCommand {
6
6
  static async commitAsync(): Promise<void> {
7
- if (StringUtil.isNullOrEmpty(process.env["ANTHROPIC_API_KEY"])) {
7
+ if (StringUtils.isNullOrEmpty(process.env["ANTHROPIC_API_KEY"])) {
8
8
  throw new Error("ANTHROPIC_API_KEY 환경변수가 설정되어 있지 않습니다.");
9
9
  }
10
10
 
@@ -17,7 +17,7 @@ export class SdAiCommand {
17
17
  { cwd: process.cwd() },
18
18
  );
19
19
 
20
- if (StringUtil.isNullOrEmpty(diff.trim())) {
20
+ if (StringUtils.isNullOrEmpty(diff.trim())) {
21
21
  throw new Error("변경사항이 없습니다.");
22
22
  }
23
23
 
@@ -1,21 +1,21 @@
1
1
  import * as path from "path";
2
- import { FsUtil, Logger, SdProcess } from "@simplysm/sd-core-node";
2
+ import { FsUtils, SdLogger, SdProcess } from "@simplysm/sd-core-node";
3
3
  import xml2js from "xml2js";
4
4
  import JSZip from "jszip";
5
- import { type INpmConfig } from "../types/common-configs.type";
6
- import { type ISdClientBuilderCordovaConfig } from "../types/sd-configs.type";
5
+ import { type INpmConfig } from "../types/common-configs.types";
6
+ import { type ISdClientBuilderCordovaConfig } from "../types/config.types";
7
7
 
8
8
  const BIN_PATH = path.resolve(process.cwd(), "node_modules/.bin/cordova.cmd");
9
9
 
10
10
  export class SdCliCordova {
11
- private _logger = Logger.get(["simplysm", "sd-cli", "SdCliCordova"]);
11
+ private _logger = SdLogger.get(["simplysm", "sd-cli", "SdCliCordova"]);
12
12
 
13
13
  private _platforms: string[];
14
14
  private _npmConfig: INpmConfig;
15
15
 
16
16
  constructor(private readonly _opt: { pkgPath: string; config: ISdClientBuilderCordovaConfig }) {
17
17
  this._platforms = Object.keys(this._opt.config.platform ?? { browser: {} });
18
- this._npmConfig = FsUtil.readJson(path.resolve(this._opt.pkgPath, "package.json"));
18
+ this._npmConfig = FsUtils.readJson(path.resolve(this._opt.pkgPath, "package.json"));
19
19
  // this._logger = Logger.get(["simplysm", "sd-cli", this.constructor.name, this._npmConfig.name]);
20
20
  }
21
21
 
@@ -28,7 +28,7 @@ export class SdCliCordova {
28
28
  public async initializeAsync(): Promise<void> {
29
29
  const cordovaPath = path.resolve(this._opt.pkgPath, ".cordova");
30
30
 
31
- if (FsUtil.exists(cordovaPath)) {
31
+ if (FsUtils.exists(cordovaPath)) {
32
32
  this._logger.log("이미 생성되어있는 '.cordova'를 사용합니다.");
33
33
  } else {
34
34
  await this._execAsync(`${BIN_PATH} telemetry on`, this._opt.pkgPath);
@@ -51,13 +51,13 @@ export class SdCliCordova {
51
51
  }
52
52
 
53
53
  // platforms 폴더 혹시 없으면 생성
54
- FsUtil.mkdirs(path.resolve(cordovaPath, "platforms"));
54
+ FsUtils.mkdirs(path.resolve(cordovaPath, "platforms"));
55
55
 
56
56
  // www 폴더 혹시 없으면 생성
57
- FsUtil.mkdirs(path.resolve(cordovaPath, "www"));
57
+ FsUtils.mkdirs(path.resolve(cordovaPath, "www"));
58
58
 
59
59
  // 미설치 빌드 플랫폼 신규 생성
60
- const alreadyPlatforms = FsUtil.readdir(path.resolve(cordovaPath, "platforms"));
60
+ const alreadyPlatforms = FsUtils.readdir(path.resolve(cordovaPath, "platforms"));
61
61
  for (const platform of this._platforms) {
62
62
  if (!alreadyPlatforms.includes(platform)) {
63
63
  // await this._execAsync(`${BIN_PATH} platform add ${platform}`, cordovaPath);
@@ -77,8 +77,8 @@ export class SdCliCordova {
77
77
  }*/
78
78
 
79
79
  // 설치된 미사용 플러그인 삭제
80
- const pluginsFetch = FsUtil.exists(path.resolve(cordovaPath, "plugins/fetch.json"))
81
- ? FsUtil.readJson(path.resolve(cordovaPath, "plugins/fetch.json"))
80
+ const pluginsFetch = FsUtils.exists(path.resolve(cordovaPath, "plugins/fetch.json"))
81
+ ? FsUtils.readJson(path.resolve(cordovaPath, "plugins/fetch.json"))
82
82
  : undefined;
83
83
 
84
84
  const alreadyPlugins: { name: string; id: string }[] = [];
@@ -118,18 +118,18 @@ export class SdCliCordova {
118
118
 
119
119
  // ANDROID SIGN 파일 복사
120
120
  if (this._opt.config.platform?.android?.sign) {
121
- FsUtil.copy(
121
+ FsUtils.copy(
122
122
  path.resolve(this._opt.pkgPath, this._opt.config.platform.android.sign.keystore),
123
123
  path.resolve(cordovaPath, "android.keystore"),
124
124
  );
125
125
  } else {
126
- FsUtil.remove(path.resolve(cordovaPath, "android.keystore"));
126
+ FsUtils.remove(path.resolve(cordovaPath, "android.keystore"));
127
127
  // SIGN을 안쓸경우 아래 파일이 생성되어 있으면 오류남
128
- FsUtil.remove(path.resolve(cordovaPath, "platforms/android/release-signing.properties"));
128
+ FsUtils.remove(path.resolve(cordovaPath, "platforms/android/release-signing.properties"));
129
129
  }
130
130
 
131
131
  // 빌드 옵션 파일 생성
132
- FsUtil.writeJson(path.resolve(cordovaPath, "build.json"), {
132
+ FsUtils.writeJson(path.resolve(cordovaPath, "build.json"), {
133
133
  ...(this._opt.config.platform?.android
134
134
  ? {
135
135
  android: {
@@ -152,17 +152,17 @@ export class SdCliCordova {
152
152
 
153
153
  // ICON 파일 복사
154
154
  if (this._opt.config.icon != null) {
155
- FsUtil.copy(
155
+ FsUtils.copy(
156
156
  path.resolve(this._opt.pkgPath, this._opt.config.icon),
157
157
  path.resolve(cordovaPath, "res/icons", path.basename(this._opt.config.icon)),
158
158
  );
159
159
  } else {
160
- FsUtil.remove(path.resolve(cordovaPath, "res/icons"));
160
+ FsUtils.remove(path.resolve(cordovaPath, "res/icons"));
161
161
  }
162
162
 
163
163
  // SplashScreen 파일 생성
164
164
  if (this._opt.config.platform?.android && this._opt.config.icon != null) {
165
- FsUtil.writeFile(
165
+ FsUtils.writeFile(
166
166
  path.resolve(cordovaPath, "res/screen/android/splashscreen.xml"),
167
167
  `
168
168
  <?xml version="1.0" encoding="utf-8"?>
@@ -179,12 +179,12 @@ export class SdCliCordova {
179
179
  // CONFIG: 초기값 백업
180
180
  const configFilePath = path.resolve(cordovaPath, "config.xml");
181
181
  const configBackFilePath = path.resolve(cordovaPath, "config.xml.bak");
182
- if (!FsUtil.exists(configBackFilePath)) {
183
- FsUtil.copy(configFilePath, configBackFilePath);
182
+ if (!FsUtils.exists(configBackFilePath)) {
183
+ FsUtils.copy(configFilePath, configBackFilePath);
184
184
  }
185
185
 
186
186
  // CONFIG: 초기값 읽기
187
- const configFileContent = FsUtil.readFile(configBackFilePath);
187
+ const configFileContent = FsUtils.readFile(configBackFilePath);
188
188
  const configXml = await xml2js.parseStringPromise(configFileContent);
189
189
 
190
190
  // CONFIG: 버전 설정
@@ -293,7 +293,7 @@ export class SdCliCordova {
293
293
 
294
294
  // CONFIG: 파일 새로 쓰기
295
295
  const configResultContent = new xml2js.Builder().buildObject(configXml);
296
- FsUtil.writeFile(configFilePath, configResultContent);
296
+ FsUtils.writeFile(configFilePath, configResultContent);
297
297
 
298
298
  //android.json의 undefined 문제 해결
299
299
  /*const androidJsonFilePath = path.resolve(cordovaPath, "platforms/android/android.json");
@@ -329,8 +329,8 @@ export class SdCliCordova {
329
329
  const latestDistApkFileName = path.basename(
330
330
  `${this._opt.config.appName}${this._opt.config.platform!.android!.sign ? "" : "-unsigned"}-latest.apk`,
331
331
  );
332
- FsUtil.mkdirs(targetOutPath);
333
- FsUtil.copy(
332
+ FsUtils.mkdirs(targetOutPath);
333
+ FsUtils.copy(
334
334
  path.resolve(cordovaPath, "platforms/android/app/build/outputs/apk", buildType, apkFileName),
335
335
  path.resolve(targetOutPath, latestDistApkFileName),
336
336
  );
@@ -338,13 +338,13 @@ export class SdCliCordova {
338
338
 
339
339
  // 자동업데이트를 위한 파일 쓰기 (ZIP)
340
340
  const zip = new JSZip();
341
- const wwwFiles = FsUtil.glob(path.resolve(cordovaPath, "www/**/*"), { nodir: true });
341
+ const wwwFiles = FsUtils.glob(path.resolve(cordovaPath, "www/**/*"), { nodir: true });
342
342
  for (const wwwFile of wwwFiles) {
343
343
  const relFilePath = path.relative(path.resolve(cordovaPath, "www"), wwwFile);
344
- const fileBuffer = FsUtil.readFileBuffer(wwwFile);
344
+ const fileBuffer = FsUtils.readFileBuffer(wwwFile);
345
345
  zip.file(relFilePath, fileBuffer);
346
346
  }
347
- const platformWwwFiles = FsUtil.glob(path.resolve(cordovaPath, "platforms", platform, "platform_www/**/*"), {
347
+ const platformWwwFiles = FsUtils.glob(path.resolve(cordovaPath, "platforms", platform, "platform_www/**/*"), {
348
348
  nodir: true,
349
349
  });
350
350
  for (const platformWwwFile of platformWwwFiles) {
@@ -352,11 +352,11 @@ export class SdCliCordova {
352
352
  path.resolve(cordovaPath, "platforms", platform, "platform_www"),
353
353
  platformWwwFile,
354
354
  );
355
- const fileBuffer = FsUtil.readFileBuffer(platformWwwFile);
355
+ const fileBuffer = FsUtils.readFileBuffer(platformWwwFile);
356
356
  zip.file(relFilePath, fileBuffer);
357
357
  }
358
358
 
359
- FsUtil.writeFile(
359
+ FsUtils.writeFile(
360
360
  path.resolve(path.resolve(outPath, platform, "updates"), this._npmConfig.version + ".zip"),
361
361
  await zip.generateAsync({ type: "nodebuffer" }),
362
362
  );
@@ -367,9 +367,9 @@ export class SdCliCordova {
367
367
  const cordovaPath = path.resolve(process.cwd(), `packages/${opt.pkgName}/.cordova/`);
368
368
 
369
369
  if (opt.url !== undefined) {
370
- FsUtil.remove(path.resolve(cordovaPath, "www"));
371
- FsUtil.mkdirs(path.resolve(cordovaPath, "www"));
372
- FsUtil.writeFile(
370
+ FsUtils.remove(path.resolve(cordovaPath, "www"));
371
+ FsUtils.mkdirs(path.resolve(cordovaPath, "www"));
372
+ FsUtils.writeFile(
373
373
  path.resolve(cordovaPath, "www/index.html"),
374
374
  `'${opt.url}'로 이동중... <script>setTimeout(function () {window.location.href = "${opt.url.replace(/\/$/, "")}/${opt.pkgName}/cordova/"}, 3000);</script>`.trim(),
375
375
  );
@@ -1,13 +1,13 @@
1
- import { FsUtil, Logger, SdProcess } from "@simplysm/sd-core-node";
1
+ import { FsUtils, SdLogger, SdProcess } from "@simplysm/sd-core-node";
2
2
  import { pathToFileURL } from "url";
3
3
  import path from "path";
4
4
  import electronBuilder from "electron-builder";
5
- import { type ISdClientBuilderElectronConfig, type ISdProjectConfig } from "../types/sd-configs.type";
6
- import { type INpmConfig } from "../types/common-configs.type";
5
+ import { type ISdClientBuilderElectronConfig, type ISdProjectConfig } from "../types/config.types";
6
+ import { type INpmConfig } from "../types/common-configs.types";
7
7
 
8
8
  export class SdCliElectron {
9
9
  static async runAsync(opt: { confFileRelPath: string; optNames: string[]; pkgName: string }): Promise<void> {
10
- const logger = Logger.get(["simplysm", "sd-cli", "SdCliElectron", "runAsync"]);
10
+ const logger = SdLogger.get(["simplysm", "sd-cli", "SdCliElectron", "runAsync"]);
11
11
 
12
12
  const pkgPath = path.resolve(process.cwd(), `packages/${opt.pkgName}`);
13
13
  const electronPath = path.resolve(pkgPath, "dist/electron");
@@ -23,11 +23,11 @@ export class SdCliElectron {
23
23
  }
24
24
 
25
25
  logger.log("package.json 파일 쓰기...");
26
- const npmConfig = FsUtil.readJson(path.resolve(pkgPath, `package.json`)) as INpmConfig;
26
+ const npmConfig = FsUtils.readJson(path.resolve(pkgPath, `package.json`)) as INpmConfig;
27
27
 
28
28
  const reinstallPkgNames = pkgConf.builder.electron.reinstallDependencies ?? [];
29
29
 
30
- FsUtil.writeJson(path.resolve(electronPath, `package.json`), {
30
+ FsUtils.writeJson(path.resolve(electronPath, `package.json`), {
31
31
  name: npmConfig.name.replace(/^@/, "").replace(/\//, "-"),
32
32
  version: npmConfig.version,
33
33
  description: npmConfig.description,
@@ -67,7 +67,7 @@ export class SdCliElectron {
67
67
  }
68
68
 
69
69
  static async buildForDevAsync(opt: { confFileRelPath: string; optNames: string[]; pkgName: string }): Promise<void> {
70
- const logger = Logger.get(["simplysm", "sd-cli", "SdCliElectron", "buildForDevAsync"]);
70
+ const logger = SdLogger.get(["simplysm", "sd-cli", "SdCliElectron", "buildForDevAsync"]);
71
71
 
72
72
  const pkgPath = path.resolve(process.cwd(), `packages/${opt.pkgName}`);
73
73
  const electronPath = path.resolve(pkgPath, "dist/electron");
@@ -84,11 +84,11 @@ export class SdCliElectron {
84
84
  }
85
85
 
86
86
  logger.log("package.json 파일 쓰기...");
87
- const npmConfig = FsUtil.readJson(path.resolve(pkgPath, `package.json`)) as INpmConfig;
87
+ const npmConfig = FsUtils.readJson(path.resolve(pkgPath, `package.json`)) as INpmConfig;
88
88
 
89
89
  const reinstallPkgNames = pkgConf.builder.electron.reinstallDependencies ?? [];
90
90
 
91
- FsUtil.writeJson(path.resolve(electronPath, `package.json`), {
91
+ FsUtils.writeJson(path.resolve(electronPath, `package.json`), {
92
92
  name: npmConfig.name.replace(/^@/, "").replace(/\//, "-"),
93
93
  version: npmConfig.version,
94
94
  description: npmConfig.description,
@@ -110,7 +110,7 @@ export class SdCliElectron {
110
110
  await SdProcess.spawnAsync(`npm install`, { cwd: electronPath }, true);
111
111
 
112
112
  for (const reinstallPkgName of reinstallPkgNames) {
113
- if (FsUtil.exists(path.resolve(electronPath, "node_modules", reinstallPkgName, "binding.gyp"))) {
113
+ if (FsUtils.exists(path.resolve(electronPath, "node_modules", reinstallPkgName, "binding.gyp"))) {
114
114
  logger.log(`electron rebuild (${reinstallPkgName})...`);
115
115
  await SdProcess.spawnAsync(
116
116
  `electron-rebuild -m ./node_modules/${reinstallPkgName}`,
@@ -145,24 +145,24 @@ export class SdCliElectron {
145
145
  },
146
146
  });
147
147
 
148
- FsUtil.copy(
148
+ FsUtils.copy(
149
149
  path.resolve(electronDistPath, `${npmConfig.description} ${pkgConf.builder.electron.portable ? "" : "Setup "}${npmConfig.version}.exe`),
150
150
  path.resolve(pkgPath, `dist/electron/${npmConfig.description}${pkgConf.builder.electron.portable ? "-portable" : ""}-dev.exe`),
151
151
  );
152
152
  }
153
153
 
154
154
  static async buildAsync(opt: { pkgPath: string; config: ISdClientBuilderElectronConfig }): Promise<void> {
155
- const logger = Logger.get(["simplysm", "sd-cli", "SdCliElectron", "buildAsync"]);
155
+ const logger = SdLogger.get(["simplysm", "sd-cli", "SdCliElectron", "buildAsync"]);
156
156
 
157
157
  const electronSrcPath = path.resolve(opt.pkgPath, ".electron/src");
158
158
  const electronDistPath = path.resolve(opt.pkgPath, ".electron/dist");
159
159
 
160
160
  logger.log("package.json 파일 쓰기...");
161
- const npmConfig = FsUtil.readJson(path.resolve(opt.pkgPath, `package.json`)) as INpmConfig;
161
+ const npmConfig = FsUtils.readJson(path.resolve(opt.pkgPath, `package.json`)) as INpmConfig;
162
162
 
163
163
  const reinstallPkgNames = opt.config.reinstallDependencies ?? [];
164
164
 
165
- FsUtil.writeJson(path.resolve(electronSrcPath, `package.json`), {
165
+ FsUtils.writeJson(path.resolve(electronSrcPath, `package.json`), {
166
166
  name: npmConfig.name.replace(/^@/, "").replace(/\//, "-"),
167
167
  version: npmConfig.version,
168
168
  description: npmConfig.description,
@@ -184,7 +184,7 @@ export class SdCliElectron {
184
184
  await SdProcess.spawnAsync(`npm install`, { cwd: electronSrcPath }, true);
185
185
 
186
186
  for (const reinstallPkgName of reinstallPkgNames) {
187
- if (FsUtil.exists(path.resolve(electronSrcPath, "node_modules", reinstallPkgName, "binding.gyp"))) {
187
+ if (FsUtils.exists(path.resolve(electronSrcPath, "node_modules", reinstallPkgName, "binding.gyp"))) {
188
188
  logger.log(`electron rebuild (${reinstallPkgName})...`);
189
189
  await SdProcess.spawnAsync(
190
190
  `electron-rebuild -m ./node_modules/${reinstallPkgName}`,
@@ -219,12 +219,12 @@ export class SdCliElectron {
219
219
  },
220
220
  });
221
221
 
222
- FsUtil.copy(
222
+ FsUtils.copy(
223
223
  path.resolve(electronDistPath, `${npmConfig.description} ${opt.config.portable ? "" : "Setup "}${npmConfig.version}.exe`),
224
224
  path.resolve(opt.pkgPath, `dist/electron/${npmConfig.description}${opt.config.portable ? "-portable" : ""}-latest.exe`),
225
225
  );
226
226
 
227
- FsUtil.copy(
227
+ FsUtils.copy(
228
228
  path.resolve(electronDistPath, `${npmConfig.description} ${opt.config.portable ? "" : "Setup "}${npmConfig.version}.exe`),
229
229
  path.resolve(opt.pkgPath, `dist/electron/updates/${npmConfig.version}.exe`),
230
230
  );