@simplysm/sd-cli 7.3.4 → 10.0.21

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 (468) hide show
  1. package/.eslintrc.cjs +18 -0
  2. package/dist/SdLinter.d.ts +5 -0
  3. package/dist/SdLinter.js.map +1 -0
  4. package/dist/SdLinter.mjs +37 -0
  5. package/dist/SdTsIncrementalBuilder.d.ts +16 -0
  6. package/dist/SdTsIncrementalBuilder.js.map +1 -0
  7. package/dist/SdTsIncrementalBuilder.mjs +54 -0
  8. package/dist/build-cluster.js.map +1 -0
  9. package/dist/build-cluster.mjs +124 -0
  10. package/dist/builders/SdCliClientBuilder.d.ts +13 -0
  11. package/dist/builders/SdCliClientBuilder.js.map +1 -0
  12. package/dist/builders/SdCliClientBuilder.mjs +167 -0
  13. package/dist/builders/SdCliJsLibLinter.d.ts +14 -0
  14. package/dist/builders/SdCliJsLibLinter.js.map +1 -0
  15. package/dist/builders/SdCliJsLibLinter.mjs +60 -0
  16. package/dist/builders/SdCliServerBuilder.d.ts +14 -0
  17. package/dist/builders/SdCliServerBuilder.js.map +1 -0
  18. package/dist/builders/SdCliServerBuilder.mjs +171 -0
  19. package/dist/builders/SdCliTsLibBuilder.d.ts +13 -0
  20. package/dist/builders/SdCliTsLibBuilder.js.map +1 -0
  21. package/dist/builders/SdCliTsLibBuilder.mjs +75 -0
  22. package/dist/commons.d.ts +20 -110
  23. package/dist/commons.js.map +1 -0
  24. package/dist/commons.mjs +1 -1
  25. package/dist/entry/SdCliProject.d.ts +29 -0
  26. package/dist/entry/SdCliProject.js.map +1 -0
  27. package/dist/entry/SdCliProject.mjs +353 -0
  28. package/dist/sd-cli.js.map +1 -0
  29. package/dist/sd-cli.mjs +119 -0
  30. package/dist/sd-core-common/src/decorators/NotifyPropertyChange.d.ts +20 -0
  31. package/dist/sd-core-common/src/decorators/NotifyPropertyChange.js.map +1 -0
  32. package/dist/sd-core-common/src/decorators/NotifyPropertyChange.mjs +12 -0
  33. package/dist/sd-core-common/src/decorators/PropertyGetSetDecoratorBase.d.ts +43 -0
  34. package/dist/sd-core-common/src/decorators/PropertyGetSetDecoratorBase.js.map +1 -0
  35. package/dist/sd-core-common/src/decorators/PropertyGetSetDecoratorBase.mjs +54 -0
  36. package/dist/sd-core-common/src/decorators/PropertyValidate.d.ts +16 -0
  37. package/dist/sd-core-common/src/decorators/PropertyValidate.js.map +1 -0
  38. package/dist/sd-core-common/src/decorators/PropertyValidate.mjs +26 -0
  39. package/dist/sd-core-common/src/decorators/decorator-return-types.d.ts +14 -0
  40. package/dist/sd-core-common/src/decorators/decorator-return-types.js.map +1 -0
  41. package/dist/sd-core-common/src/decorators/decorator-return-types.mjs +2 -0
  42. package/dist/sd-core-common/src/errors/ArgumentError.d.ts +10 -0
  43. package/dist/sd-core-common/src/errors/ArgumentError.js.map +1 -0
  44. package/dist/sd-core-common/src/errors/ArgumentError.mjs +13 -0
  45. package/dist/sd-core-common/src/errors/NeverEntryError.d.ts +10 -0
  46. package/dist/sd-core-common/src/errors/NeverEntryError.js.map +1 -0
  47. package/dist/sd-core-common/src/errors/NeverEntryError.mjs +13 -0
  48. package/dist/sd-core-common/src/errors/NotImplementError.d.ts +10 -0
  49. package/dist/sd-core-common/src/errors/NotImplementError.js.map +1 -0
  50. package/dist/sd-core-common/src/errors/NotImplementError.mjs +13 -0
  51. package/dist/sd-core-common/src/errors/SdError.d.ts +23 -0
  52. package/dist/sd-core-common/src/errors/SdError.js.map +1 -0
  53. package/dist/sd-core-common/src/errors/SdError.mjs +40 -0
  54. package/dist/sd-core-common/src/errors/TimeoutError.d.ts +11 -0
  55. package/dist/sd-core-common/src/errors/TimeoutError.js.map +1 -0
  56. package/dist/sd-core-common/src/errors/TimeoutError.mjs +16 -0
  57. package/dist/sd-core-common/src/extensions/ArrayExtension.d.ts +147 -0
  58. package/dist/sd-core-common/src/extensions/ArrayExtension.js.map +1 -0
  59. package/dist/sd-core-common/src/extensions/ArrayExtension.mjs +448 -0
  60. package/dist/sd-core-common/src/extensions/MapExtension.d.ts +4 -0
  61. package/dist/sd-core-common/src/extensions/MapExtension.js.map +1 -0
  62. package/dist/sd-core-common/src/extensions/MapExtension.mjs +15 -0
  63. package/dist/sd-core-common/src/extensions/SetExtension.d.ts +3 -0
  64. package/dist/sd-core-common/src/extensions/SetExtension.js.map +1 -0
  65. package/dist/sd-core-common/src/extensions/SetExtension.mjs +10 -0
  66. package/dist/sd-core-common/src/index.d.ts +32 -0
  67. package/dist/sd-core-common/src/index.js.map +1 -0
  68. package/dist/sd-core-common/src/index.mjs +33 -0
  69. package/dist/sd-core-common/src/types/DateOnly.d.ts +135 -0
  70. package/dist/sd-core-common/src/types/DateOnly.js.map +1 -0
  71. package/dist/sd-core-common/src/types/DateOnly.mjs +220 -0
  72. package/dist/sd-core-common/src/types/DateTime.d.ts +42 -0
  73. package/dist/sd-core-common/src/types/DateTime.js.map +1 -0
  74. package/dist/sd-core-common/src/types/DateTime.mjs +156 -0
  75. package/dist/sd-core-common/src/types/DeepPartial.d.ts +3 -0
  76. package/dist/sd-core-common/src/types/DeepPartial.js.map +1 -0
  77. package/dist/sd-core-common/src/types/DeepPartial.mjs +2 -0
  78. package/dist/sd-core-common/src/types/ObjectSet.d.ts +4 -0
  79. package/dist/sd-core-common/src/types/ObjectSet.js.map +1 -0
  80. package/dist/sd-core-common/src/types/ObjectSet.mjs +18 -0
  81. package/dist/sd-core-common/src/types/Time.d.ts +27 -0
  82. package/dist/sd-core-common/src/types/Time.js.map +1 -0
  83. package/dist/sd-core-common/src/types/Time.mjs +108 -0
  84. package/dist/sd-core-common/src/types/Type.d.ts +7 -0
  85. package/dist/sd-core-common/src/types/Type.js.map +1 -0
  86. package/dist/sd-core-common/src/types/Type.mjs +2 -0
  87. package/dist/sd-core-common/src/types/UnwrappedType.d.ts +1 -0
  88. package/dist/sd-core-common/src/types/UnwrappedType.js.map +1 -0
  89. package/dist/sd-core-common/src/types/UnwrappedType.mjs +2 -0
  90. package/dist/sd-core-common/src/types/Uuid.d.ts +8 -0
  91. package/dist/sd-core-common/src/types/Uuid.js.map +1 -0
  92. package/dist/sd-core-common/src/types/Uuid.mjs +26 -0
  93. package/dist/sd-core-common/src/types/WrappedType.d.ts +1 -0
  94. package/dist/sd-core-common/src/types/WrappedType.js.map +1 -0
  95. package/dist/sd-core-common/src/types/WrappedType.mjs +2 -0
  96. package/dist/sd-core-common/src/utils/DateTimeFormatUtil.d.ts +12 -0
  97. package/dist/sd-core-common/src/utils/DateTimeFormatUtil.js.map +1 -0
  98. package/dist/sd-core-common/src/utils/DateTimeFormatUtil.mjs +67 -0
  99. package/dist/sd-core-common/src/utils/FunctionQueue.d.ts +8 -0
  100. package/dist/sd-core-common/src/utils/FunctionQueue.js.map +1 -0
  101. package/dist/sd-core-common/src/utils/FunctionQueue.mjs +46 -0
  102. package/dist/sd-core-common/src/utils/FunctionUtil.d.ts +6 -0
  103. package/dist/sd-core-common/src/utils/FunctionUtil.js.map +1 -0
  104. package/dist/sd-core-common/src/utils/FunctionUtil.mjs +31 -0
  105. package/dist/sd-core-common/src/utils/JsonConvert.d.ts +8 -0
  106. package/dist/sd-core-common/src/utils/JsonConvert.js.map +1 -0
  107. package/dist/sd-core-common/src/utils/JsonConvert.mjs +78 -0
  108. package/dist/sd-core-common/src/utils/MathUtil.d.ts +3 -0
  109. package/dist/sd-core-common/src/utils/MathUtil.js.map +1 -0
  110. package/dist/sd-core-common/src/utils/MathUtil.mjs +6 -0
  111. package/dist/sd-core-common/src/utils/NumberUtil.d.ts +6 -0
  112. package/dist/sd-core-common/src/utils/NumberUtil.js.map +1 -0
  113. package/dist/sd-core-common/src/utils/NumberUtil.mjs +32 -0
  114. package/dist/sd-core-common/src/utils/ObjectUtil.d.ts +80 -0
  115. package/dist/sd-core-common/src/utils/ObjectUtil.js.map +1 -0
  116. package/dist/sd-core-common/src/utils/ObjectUtil.mjs +452 -0
  117. package/dist/sd-core-common/src/utils/SdSyncEventEmitter.d.ts +6 -0
  118. package/dist/sd-core-common/src/utils/SdSyncEventEmitter.js.map +1 -0
  119. package/dist/sd-core-common/src/utils/SdSyncEventEmitter.mjs +27 -0
  120. package/dist/sd-core-common/src/utils/StringUtil.d.ts +8 -0
  121. package/dist/sd-core-common/src/utils/StringUtil.js.map +1 -0
  122. package/dist/sd-core-common/src/utils/StringUtil.mjs +77 -0
  123. package/dist/sd-core-common/src/utils/Wait.d.ts +4 -0
  124. package/dist/sd-core-common/src/utils/Wait.js.map +1 -0
  125. package/dist/sd-core-common/src/utils/Wait.mjs +23 -0
  126. package/dist/sd-core-node/src/index.d.ts +6 -0
  127. package/dist/sd-core-node/src/index.js.map +1 -0
  128. package/dist/sd-core-node/src/index.mjs +7 -0
  129. package/dist/sd-core-node/src/utils/FsUtil.d.ts +44 -0
  130. package/dist/sd-core-node/src/utils/FsUtil.js.map +1 -0
  131. package/dist/sd-core-node/src/utils/FsUtil.mjs +493 -0
  132. package/dist/sd-core-node/src/utils/Logger.d.ts +91 -0
  133. package/dist/sd-core-node/src/utils/Logger.js.map +1 -0
  134. package/dist/sd-core-node/src/utils/Logger.mjs +185 -0
  135. package/dist/sd-core-node/src/utils/PathUtil.d.ts +6 -0
  136. package/dist/sd-core-node/src/utils/PathUtil.js.map +1 -0
  137. package/dist/sd-core-node/src/utils/PathUtil.mjs +24 -0
  138. package/dist/sd-core-node/src/utils/SdFsWatcher.d.ts +15 -0
  139. package/dist/sd-core-node/src/utils/SdFsWatcher.js.map +1 -0
  140. package/dist/sd-core-node/src/utils/SdFsWatcher.mjs +43 -0
  141. package/dist/sd-core-node/src/utils/SdProcess.d.ts +5 -0
  142. package/dist/sd-core-node/src/utils/SdProcess.js.map +1 -0
  143. package/dist/sd-core-node/src/utils/SdProcess.mjs +36 -0
  144. package/dist/sd-orm-common/src/CaseQueryHelper.d.ts +12 -0
  145. package/dist/sd-orm-common/src/CaseQueryHelper.js.map +1 -0
  146. package/dist/sd-orm-common/src/CaseQueryHelper.mjs +19 -0
  147. package/dist/sd-orm-common/src/CaseWhenQueryHelper.d.ts +12 -0
  148. package/dist/sd-orm-common/src/CaseWhenQueryHelper.js.map +1 -0
  149. package/dist/sd-orm-common/src/CaseWhenQueryHelper.mjs +20 -0
  150. package/dist/sd-orm-common/src/DbContext.d.ts +81 -0
  151. package/dist/sd-orm-common/src/DbContext.js.map +1 -0
  152. package/dist/sd-orm-common/src/DbContext.mjs +635 -0
  153. package/dist/sd-orm-common/src/IDbConnection.d.ts +15 -0
  154. package/dist/sd-orm-common/src/IDbConnection.js.map +1 -0
  155. package/dist/sd-orm-common/src/IDbConnection.mjs +2 -0
  156. package/dist/sd-orm-common/src/IDbContextExecutor.d.ts +17 -0
  157. package/dist/sd-orm-common/src/IDbContextExecutor.js.map +1 -0
  158. package/dist/sd-orm-common/src/IDbContextExecutor.mjs +2 -0
  159. package/dist/sd-orm-common/src/IDbMigration.d.ts +4 -0
  160. package/dist/sd-orm-common/src/IDbMigration.js.map +1 -0
  161. package/dist/sd-orm-common/src/IDbMigration.mjs +2 -0
  162. package/dist/sd-orm-common/src/QueryBuilder.d.ts +48 -0
  163. package/dist/sd-orm-common/src/QueryBuilder.js.map +1 -0
  164. package/dist/sd-orm-common/src/QueryBuilder.mjs +1022 -0
  165. package/dist/sd-orm-common/src/QueryHelper.d.ts +75 -0
  166. package/dist/sd-orm-common/src/QueryHelper.js.map +1 -0
  167. package/dist/sd-orm-common/src/QueryHelper.mjs +627 -0
  168. package/dist/sd-orm-common/src/QueryUnit.d.ts +10 -0
  169. package/dist/sd-orm-common/src/QueryUnit.js.map +1 -0
  170. package/dist/sd-orm-common/src/QueryUnit.mjs +16 -0
  171. package/dist/sd-orm-common/src/Queryable.d.ts +105 -0
  172. package/dist/sd-orm-common/src/Queryable.js.map +1 -0
  173. package/dist/sd-orm-common/src/Queryable.mjs +1375 -0
  174. package/dist/sd-orm-common/src/SdOrmDataType.d.ts +21 -0
  175. package/dist/sd-orm-common/src/SdOrmDataType.js.map +1 -0
  176. package/dist/sd-orm-common/src/SdOrmDataType.mjs +2 -0
  177. package/dist/sd-orm-common/src/commons.d.ts +400 -0
  178. package/dist/sd-orm-common/src/commons.js.map +1 -0
  179. package/dist/sd-orm-common/src/commons.mjs +8 -0
  180. package/dist/sd-orm-common/src/decorators.d.ts +29 -0
  181. package/dist/sd-orm-common/src/decorators.js.map +1 -0
  182. package/dist/sd-orm-common/src/decorators.mjs +89 -0
  183. package/dist/sd-orm-common/src/index.d.ts +17 -0
  184. package/dist/sd-orm-common/src/index.js.map +1 -0
  185. package/dist/sd-orm-common/src/index.mjs +18 -0
  186. package/dist/sd-orm-common/src/models/SystemMigration.d.ts +3 -0
  187. package/dist/sd-orm-common/src/models/SystemMigration.js.map +1 -0
  188. package/dist/sd-orm-common/src/models/SystemMigration.mjs +13 -0
  189. package/dist/sd-orm-common/src/utils/DbDefinitionUtil.d.ts +14 -0
  190. package/dist/sd-orm-common/src/utils/DbDefinitionUtil.js.map +1 -0
  191. package/dist/sd-orm-common/src/utils/DbDefinitionUtil.mjs +66 -0
  192. package/dist/sd-orm-common/src/utils/SdOrmUtil.d.ts +8 -0
  193. package/dist/sd-orm-common/src/utils/SdOrmUtil.js.map +1 -0
  194. package/dist/sd-orm-common/src/utils/SdOrmUtil.mjs +248 -0
  195. package/dist/sd-orm-node/src/DbConnectionFactory.d.ts +4 -0
  196. package/dist/sd-orm-node/src/DbConnectionFactory.js.map +1 -0
  197. package/dist/sd-orm-node/src/DbConnectionFactory.mjs +17 -0
  198. package/dist/sd-orm-node/src/NodeDbContextExecutor.d.ts +19 -0
  199. package/dist/sd-orm-node/src/NodeDbContextExecutor.js.map +1 -0
  200. package/dist/sd-orm-node/src/NodeDbContextExecutor.mjs +71 -0
  201. package/dist/sd-orm-node/src/SdOrm.d.ts +10 -0
  202. package/dist/sd-orm-node/src/SdOrm.js.map +1 -0
  203. package/dist/sd-orm-node/src/SdOrm.mjs +25 -0
  204. package/dist/sd-orm-node/src/index.d.ts +4 -0
  205. package/dist/sd-orm-node/src/index.js.map +1 -0
  206. package/dist/sd-orm-node/src/index.mjs +5 -0
  207. package/dist/sd-orm-node-mssql/src/MssqlDbConnection.d.ts +25 -0
  208. package/dist/sd-orm-node-mssql/src/MssqlDbConnection.js.map +1 -0
  209. package/dist/sd-orm-node-mssql/src/MssqlDbConnection.mjs +321 -0
  210. package/dist/sd-orm-node-mssql/src/index.d.ts +2 -0
  211. package/dist/sd-orm-node-mssql/src/index.js.map +1 -0
  212. package/dist/sd-orm-node-mssql/src/index.mjs +3 -0
  213. package/dist/sd-orm-node-mysql/src/MysqlDbConnection.d.ts +22 -0
  214. package/dist/sd-orm-node-mysql/src/MysqlDbConnection.js.map +1 -0
  215. package/dist/sd-orm-node-mysql/src/MysqlDbConnection.mjs +200 -0
  216. package/dist/sd-orm-node-mysql/src/index.d.ts +2 -0
  217. package/dist/sd-orm-node-mysql/src/index.js.map +1 -0
  218. package/dist/sd-orm-node-mysql/src/index.mjs +3 -0
  219. package/dist/sd-orm-node-sqlite/src/SqliteDbConnection.d.ts +22 -0
  220. package/dist/sd-orm-node-sqlite/src/SqliteDbConnection.js.map +1 -0
  221. package/dist/sd-orm-node-sqlite/src/SqliteDbConnection.mjs +172 -0
  222. package/dist/sd-orm-node-sqlite/src/index.d.ts +2 -0
  223. package/dist/sd-orm-node-sqlite/src/index.js.map +1 -0
  224. package/dist/sd-orm-node-sqlite/src/index.mjs +3 -0
  225. package/dist/sd-service-common/src/commons-orm.d.ts +4 -0
  226. package/dist/sd-service-common/src/commons-orm.js.map +1 -0
  227. package/dist/sd-service-common/src/commons-orm.mjs +2 -0
  228. package/dist/sd-service-common/src/commons-smtp.d.ts +29 -0
  229. package/dist/sd-service-common/src/commons-smtp.js.map +1 -0
  230. package/dist/sd-service-common/src/commons-smtp.mjs +2 -0
  231. package/dist/sd-service-common/src/commons.d.ts +57 -0
  232. package/dist/sd-service-common/src/commons.js.map +1 -0
  233. package/dist/sd-service-common/src/commons.mjs +3 -0
  234. package/dist/sd-service-common/src/index.d.ts +3 -0
  235. package/dist/sd-service-common/src/index.js.map +1 -0
  236. package/dist/sd-service-common/src/index.mjs +4 -0
  237. package/dist/sd-service-server/src/ApiServiceError.d.ts +12 -0
  238. package/dist/sd-service-server/src/ApiServiceError.js.map +1 -0
  239. package/dist/sd-service-server/src/ApiServiceError.mjs +15 -0
  240. package/dist/sd-service-server/src/SdServiceServer.d.ts +39 -0
  241. package/dist/sd-service-server/src/SdServiceServer.js.map +1 -0
  242. package/dist/sd-service-server/src/SdServiceServer.mjs +513 -0
  243. package/dist/sd-service-server/src/commons.d.ts +23 -0
  244. package/dist/sd-service-server/src/commons.js.map +1 -0
  245. package/dist/sd-service-server/src/commons.mjs +3 -0
  246. package/dist/sd-service-server/src/index.d.ts +8 -0
  247. package/dist/sd-service-server/src/index.js.map +1 -0
  248. package/dist/sd-service-server/src/index.mjs +9 -0
  249. package/dist/sd-service-server/src/services/SdAutoUpdateService.d.ts +4 -0
  250. package/dist/sd-service-server/src/services/SdAutoUpdateService.js.map +1 -0
  251. package/dist/sd-service-server/src/services/SdAutoUpdateService.mjs +20 -0
  252. package/dist/sd-service-server/src/services/SdCryptoService.d.ts +7 -0
  253. package/dist/sd-service-server/src/services/SdCryptoService.js.map +1 -0
  254. package/dist/sd-service-server/src/services/SdCryptoService.mjs +39 -0
  255. package/dist/sd-service-server/src/services/SdOrmService.d.ts +22 -0
  256. package/dist/sd-service-server/src/services/SdOrmService.js.map +1 -0
  257. package/dist/sd-service-server/src/services/SdOrmService.mjs +115 -0
  258. package/dist/sd-service-server/src/services/SdSmtpClientService.d.ts +6 -0
  259. package/dist/sd-service-server/src/services/SdSmtpClientService.js.map +1 -0
  260. package/dist/sd-service-server/src/services/SdSmtpClientService.mjs +44 -0
  261. package/dist/sd-service-server/src/utils/SdServiceServerConfigUtil.d.ts +4 -0
  262. package/dist/sd-service-server/src/utils/SdServiceServerConfigUtil.js.map +1 -0
  263. package/dist/sd-service-server/src/utils/SdServiceServerConfigUtil.mjs +36 -0
  264. package/dist/server-worker.d.ts +1 -0
  265. package/dist/server-worker.js.map +1 -0
  266. package/dist/server-worker.mjs +36 -0
  267. package/dist/utils/SdCliBuildResultUtil.d.ts +1 -4
  268. package/dist/utils/SdCliBuildResultUtil.js.map +1 -0
  269. package/dist/utils/SdCliBuildResultUtil.mjs +3 -29
  270. package/dist/utils/SdCliConfigUtil.js.map +1 -0
  271. package/dist/utils/SdCliConfigUtil.mjs +1 -1
  272. package/package.json +14 -56
  273. package/src/SdLinter.ts +41 -0
  274. package/src/SdTsIncrementalBuilder.ts +75 -0
  275. package/src/build-cluster.ts +133 -0
  276. package/src/builders/SdCliClientBuilder.ts +189 -0
  277. package/src/builders/SdCliJsLibLinter.ts +72 -0
  278. package/src/builders/SdCliServerBuilder.ts +191 -0
  279. package/src/builders/SdCliTsLibBuilder.ts +96 -0
  280. package/src/commons.ts +21 -112
  281. package/src/entry/SdCliProject.ts +467 -0
  282. package/src/sd-cli.ts +136 -0
  283. package/src/server-worker.ts +45 -0
  284. package/src/utils/SdCliBuildResultUtil.ts +5 -38
  285. package/tsconfig.json +9 -0
  286. package/README.md +0 -105
  287. package/assets/client-files/assets/icons/icon-128x128.png +0 -0
  288. package/assets/client-files/assets/icons/icon-144x144.png +0 -0
  289. package/assets/client-files/assets/icons/icon-152x152.png +0 -0
  290. package/assets/client-files/assets/icons/icon-192x192.png +0 -0
  291. package/assets/client-files/assets/icons/icon-384x384.png +0 -0
  292. package/assets/client-files/assets/icons/icon-512x512.png +0 -0
  293. package/assets/client-files/assets/icons/icon-72x72.png +0 -0
  294. package/assets/client-files/assets/icons/icon-96x96.png +0 -0
  295. package/assets/client-files/favicon.ico +0 -0
  296. package/dist/SdCliBuildResultError.d.ts +0 -5
  297. package/dist/SdCliBuildResultError.mjs +0 -8
  298. package/dist/bin/sd-cli.d.ts +0 -2
  299. package/dist/bin/sd-cli.mjs +0 -410
  300. package/dist/build-tool/SdCliCacheCompilerHost.d.ts +0 -10
  301. package/dist/build-tool/SdCliCacheCompilerHost.mjs +0 -51
  302. package/dist/build-tool/SdCliCordova.d.ts +0 -16
  303. package/dist/build-tool/SdCliCordova.mjs +0 -212
  304. package/dist/build-tool/SdCliElectron.d.ts +0 -9
  305. package/dist/build-tool/SdCliElectron.mjs +0 -72
  306. package/dist/build-tool/SdCliGithubApi.d.ts +0 -13
  307. package/dist/build-tool/SdCliGithubApi.mjs +0 -92
  308. package/dist/build-tool/SdCliIndexFileGenerator.d.ts +0 -13
  309. package/dist/build-tool/SdCliIndexFileGenerator.mjs +0 -62
  310. package/dist/build-tool/SdCliNgCacheCompilerHost.d.ts +0 -12
  311. package/dist/build-tool/SdCliNgCacheCompilerHost.mjs +0 -43
  312. package/dist/build-tool/SdCliPackageLinter.d.ts +0 -8
  313. package/dist/build-tool/SdCliPackageLinter.mjs +0 -62
  314. package/dist/builder/SdCliClientBuilder.d.ts +0 -26
  315. package/dist/builder/SdCliClientBuilder.mjs +0 -769
  316. package/dist/builder/SdCliJsLibBuilder.d.ts +0 -14
  317. package/dist/builder/SdCliJsLibBuilder.mjs +0 -54
  318. package/dist/builder/SdCliServerBuilder.d.ts +0 -28
  319. package/dist/builder/SdCliServerBuilder.mjs +0 -482
  320. package/dist/builder/SdCliTsLibBuilder.d.ts +0 -35
  321. package/dist/builder/SdCliTsLibBuilder.mjs +0 -317
  322. package/dist/entry-points/SdCliFileCrypto.d.ts +0 -7
  323. package/dist/entry-points/SdCliFileCrypto.mjs +0 -72
  324. package/dist/entry-points/SdCliLocalUpdate.d.ts +0 -13
  325. package/dist/entry-points/SdCliLocalUpdate.mjs +0 -100
  326. package/dist/entry-points/SdCliPrepare.d.ts +0 -5
  327. package/dist/entry-points/SdCliPrepare.mjs +0 -86
  328. package/dist/entry-points/SdCliProject.d.ts +0 -34
  329. package/dist/entry-points/SdCliProject.mjs +0 -416
  330. package/dist/entry-points/SdCliProjectGenerator.d.ts +0 -44
  331. package/dist/entry-points/SdCliProjectGenerator.mjs +0 -326
  332. package/dist/entry-points/file/base/fc_package_eslintrc.d.ts +0 -3
  333. package/dist/entry-points/file/base/fc_package_eslintrc.mjs +0 -31
  334. package/dist/entry-points/file/base/fc_package_npmconfig.d.ts +0 -9
  335. package/dist/entry-points/file/base/fc_package_npmconfig.mjs +0 -32
  336. package/dist/entry-points/file/base/fc_package_tsconfig.d.ts +0 -5
  337. package/dist/entry-points/file/base/fc_package_tsconfig.mjs +0 -13
  338. package/dist/entry-points/file/client/fc_package_AppModule.d.ts +0 -1
  339. package/dist/entry-points/file/client/fc_package_AppModule.mjs +0 -37
  340. package/dist/entry-points/file/client/fc_package_AppPage.d.ts +0 -1
  341. package/dist/entry-points/file/client/fc_package_AppPage.mjs +0 -14
  342. package/dist/entry-points/file/client/fc_package_Page.d.ts +0 -4
  343. package/dist/entry-points/file/client/fc_package_Page.mjs +0 -19
  344. package/dist/entry-points/file/client/fc_package_client_main.d.ts +0 -1
  345. package/dist/entry-points/file/client/fc_package_client_main.mjs +0 -19
  346. package/dist/entry-points/file/client/fc_package_index.d.ts +0 -3
  347. package/dist/entry-points/file/client/fc_package_index.mjs +0 -88
  348. package/dist/entry-points/file/client/fc_package_manifest.d.ts +0 -5
  349. package/dist/entry-points/file/client/fc_package_manifest.mjs +0 -54
  350. package/dist/entry-points/file/client/fc_package_polyfills.d.ts +0 -1
  351. package/dist/entry-points/file/client/fc_package_polyfills.mjs +0 -11
  352. package/dist/entry-points/file/client/fc_package_styles.d.ts +0 -1
  353. package/dist/entry-points/file/client/fc_package_styles.mjs +0 -7
  354. package/dist/entry-points/file/db/fc_package_DbContext.d.ts +0 -3
  355. package/dist/entry-points/file/db/fc_package_DbContext.mjs +0 -14
  356. package/dist/entry-points/file/db/fc_package_DbModel.d.ts +0 -4
  357. package/dist/entry-points/file/db/fc_package_DbModel.mjs +0 -12
  358. package/dist/entry-points/file/project/fc_project_editor_config.d.ts +0 -1
  359. package/dist/entry-points/file/project/fc_project_editor_config.mjs +0 -22
  360. package/dist/entry-points/file/project/fc_project_eslintrc.d.ts +0 -1
  361. package/dist/entry-points/file/project/fc_project_eslintrc.mjs +0 -30
  362. package/dist/entry-points/file/project/fc_project_gitattributes.d.ts +0 -1
  363. package/dist/entry-points/file/project/fc_project_gitattributes.mjs +0 -6
  364. package/dist/entry-points/file/project/fc_project_gitignore.d.ts +0 -1
  365. package/dist/entry-points/file/project/fc_project_gitignore.mjs +0 -27
  366. package/dist/entry-points/file/project/fc_project_npmconfig.d.ts +0 -7
  367. package/dist/entry-points/file/project/fc_project_npmconfig.mjs +0 -37
  368. package/dist/entry-points/file/project/fc_project_readme.d.ts +0 -3
  369. package/dist/entry-points/file/project/fc_project_readme.mjs +0 -13
  370. package/dist/entry-points/file/project/fc_project_simplysm.d.ts +0 -1
  371. package/dist/entry-points/file/project/fc_project_simplysm.mjs +0 -2
  372. package/dist/entry-points/file/project/fc_project_tsconfig.d.ts +0 -1
  373. package/dist/entry-points/file/project/fc_project_tsconfig.mjs +0 -25
  374. package/dist/entry-points/file/server/fc_package_server_main.d.ts +0 -5
  375. package/dist/entry-points/file/server/fc_package_server_main.mjs +0 -60
  376. package/dist/index.d.ts +0 -54
  377. package/dist/index.mjs +0 -55
  378. package/dist/ng-tools/SdCliNgModuleGenerator.d.ts +0 -29
  379. package/dist/ng-tools/SdCliNgModuleGenerator.mjs +0 -502
  380. package/dist/ng-tools/babel/SdCliBbFileMetadata.d.ts +0 -25
  381. package/dist/ng-tools/babel/SdCliBbFileMetadata.mjs +0 -539
  382. package/dist/ng-tools/babel/SdCliBbRootMetadata.d.ts +0 -23
  383. package/dist/ng-tools/babel/SdCliBbRootMetadata.mjs +0 -247
  384. package/dist/ng-tools/babel/SdCliBbUtil.d.ts +0 -5
  385. package/dist/ng-tools/babel/SdCliBbUtil.mjs +0 -14
  386. package/dist/ng-tools/babel/TSdCliBbNgMetadata.d.ts +0 -42
  387. package/dist/ng-tools/babel/TSdCliBbNgMetadata.mjs +0 -216
  388. package/dist/ng-tools/babel/TSdCliBbTypeMetadata.d.ts +0 -55
  389. package/dist/ng-tools/babel/TSdCliBbTypeMetadata.mjs +0 -151
  390. package/dist/ng-tools/commons.d.ts +0 -9
  391. package/dist/ng-tools/commons.mjs +0 -2
  392. package/dist/ng-tools/typescript/SdCliTsFileMetadata.d.ts +0 -61
  393. package/dist/ng-tools/typescript/SdCliTsFileMetadata.mjs +0 -325
  394. package/dist/ng-tools/typescript/SdCliTsRootMetadata.d.ts +0 -8
  395. package/dist/ng-tools/typescript/SdCliTsRootMetadata.mjs +0 -28
  396. package/dist/ng-tools/typescript/SdCliTsUtil.d.ts +0 -5
  397. package/dist/ng-tools/typescript/SdCliTsUtil.mjs +0 -28
  398. package/dist/packages/SdCliPackage.d.ts +0 -22
  399. package/dist/packages/SdCliPackage.mjs +0 -206
  400. package/dist/utils/SdCliNpmConfigUtil.d.ts +0 -7
  401. package/dist/utils/SdCliNpmConfigUtil.mjs +0 -15
  402. package/dist/worker/build-worker.mjs +0 -67
  403. package/dist/worker/server-worker.mjs +0 -67
  404. package/docs/client-add-page.md +0 -8
  405. package/docs/client-router.md +0 -85
  406. package/docs/client-sw.md +0 -101
  407. package/docs/conf-orm.md +0 -81
  408. package/docs/conf-usage.md +0 -5
  409. package/docs/lib-local-update.md +0 -50
  410. package/docs/lib-ts-paths.md +0 -25
  411. package/lib/cordova-entry.js +0 -22
  412. package/src/SdCliBuildResultError.ts +0 -9
  413. package/src/bin/sd-cli.ts +0 -493
  414. package/src/build-tool/SdCliCacheCompilerHost.ts +0 -79
  415. package/src/build-tool/SdCliCordova.ts +0 -263
  416. package/src/build-tool/SdCliElectron.ts +0 -85
  417. package/src/build-tool/SdCliGithubApi.ts +0 -111
  418. package/src/build-tool/SdCliIndexFileGenerator.ts +0 -79
  419. package/src/build-tool/SdCliNgCacheCompilerHost.ts +0 -58
  420. package/src/build-tool/SdCliPackageLinter.ts +0 -74
  421. package/src/builder/SdCliClientBuilder.ts +0 -879
  422. package/src/builder/SdCliJsLibBuilder.ts +0 -70
  423. package/src/builder/SdCliServerBuilder.ts +0 -552
  424. package/src/builder/SdCliTsLibBuilder.ts +0 -450
  425. package/src/entry-points/SdCliFileCrypto.ts +0 -87
  426. package/src/entry-points/SdCliLocalUpdate.ts +0 -121
  427. package/src/entry-points/SdCliPrepare.ts +0 -86
  428. package/src/entry-points/SdCliProject.ts +0 -491
  429. package/src/entry-points/SdCliProjectGenerator.ts +0 -402
  430. package/src/entry-points/file/base/fc_package_eslintrc.ts +0 -30
  431. package/src/entry-points/file/base/fc_package_npmconfig.ts +0 -43
  432. package/src/entry-points/file/base/fc_package_tsconfig.ts +0 -12
  433. package/src/entry-points/file/client/fc_package_AppModule.ts +0 -36
  434. package/src/entry-points/file/client/fc_package_AppPage.ts +0 -13
  435. package/src/entry-points/file/client/fc_package_Page.ts +0 -19
  436. package/src/entry-points/file/client/fc_package_client_main.ts +0 -18
  437. package/src/entry-points/file/client/fc_package_index.ts +0 -87
  438. package/src/entry-points/file/client/fc_package_manifest.ts +0 -53
  439. package/src/entry-points/file/client/fc_package_polyfills.ts +0 -10
  440. package/src/entry-points/file/client/fc_package_styles.ts +0 -6
  441. package/src/entry-points/file/db/fc_package_DbContext.ts +0 -14
  442. package/src/entry-points/file/db/fc_package_DbModel.ts +0 -11
  443. package/src/entry-points/file/project/fc_project_editor_config.ts +0 -21
  444. package/src/entry-points/file/project/fc_project_eslintrc.ts +0 -29
  445. package/src/entry-points/file/project/fc_project_gitattributes.ts +0 -5
  446. package/src/entry-points/file/project/fc_project_gitignore.ts +0 -26
  447. package/src/entry-points/file/project/fc_project_npmconfig.ts +0 -36
  448. package/src/entry-points/file/project/fc_project_readme.ts +0 -12
  449. package/src/entry-points/file/project/fc_project_simplysm.ts +0 -1
  450. package/src/entry-points/file/project/fc_project_tsconfig.ts +0 -24
  451. package/src/entry-points/file/server/fc_package_server_main.ts +0 -62
  452. package/src/index.ts +0 -54
  453. package/src/ng-tools/SdCliNgModuleGenerator.ts +0 -672
  454. package/src/ng-tools/babel/SdCliBbFileMetadata.ts +0 -629
  455. package/src/ng-tools/babel/SdCliBbRootMetadata.ts +0 -292
  456. package/src/ng-tools/babel/SdCliBbUtil.ts +0 -15
  457. package/src/ng-tools/babel/TSdCliBbNgMetadata.ts +0 -251
  458. package/src/ng-tools/babel/TSdCliBbTypeMetadata.ts +0 -212
  459. package/src/ng-tools/commons.ts +0 -3
  460. package/src/ng-tools/typescript/SdCliTsFileMetadata.ts +0 -384
  461. package/src/ng-tools/typescript/SdCliTsRootMetadata.ts +0 -32
  462. package/src/ng-tools/typescript/SdCliTsUtil.ts +0 -29
  463. package/src/packages/SdCliPackage.ts +0 -259
  464. package/src/utils/SdCliNpmConfigUtil.ts +0 -16
  465. package/src/worker/build-worker.ts +0 -73
  466. package/src/worker/server-worker.ts +0 -72
  467. /package/dist/{worker/build-worker.d.ts → build-cluster.d.ts} +0 -0
  468. /package/dist/{worker/server-worker.d.ts → sd-cli.d.ts} +0 -0
package/docs/conf-orm.md DELETED
@@ -1,81 +0,0 @@
1
- # 각 패키지에 orm 설정
2
-
3
- orm(DB)를 사용하는 모든 클라이언트 및 서버 패키지에 ORM 설정 추가
4
-
5
- ## simplysm.json 각 패키지 설정
6
-
7
- 아래 설정을 추천 예시 설정입니다.
8
-
9
- (클라이언트/서버 패키지에만 추가, 라이브러리에는 추가하지 않음)
10
-
11
- ``` json
12
- {
13
- "packages": {
14
- "client": {
15
- ...,
16
- "configs": {
17
- "orm": {
18
- "MAIN": {
19
- "dialect": "mysql",
20
- "host": "localhost",
21
- "port": 3306,
22
- "username": "username",
23
- "password": "password",
24
- "defaultIsolationLevel": "READ_UNCOMMITTED"
25
- }
26
- }
27
- }
28
- },
29
- ...
30
- }
31
- }
32
- ```
33
- * [simplysm.json 사용법](conf-usage.md)
34
-
35
- 위의 옵션은, 심플리즘 라이브러리를 통해 "MAIN"이라는 이름으로 접속시, 하위 접속정보에 해당하는 DB로 접속하는 옵션입니다.
36
-
37
- 옵션값 각각의 의미는 다음과 같습니다.
38
-
39
- * **dialect**: *[필수]* DB 컨테이너 구분 (mysql, mssql, mssql-azure, sqlite), 각각에 맞는 패키지가 서버에 설치되어 있어야 합니다. (sd-orm-node-mssql...)
40
- * **host**: *[필수]* 접속 HOST (or IP)
41
- * **port**: *[옵션]* 접속 PORT번호 (기본값: mssql=3306, mssql=1433, mssql-azure=1433)
42
- * **username**: *[필수]* 인증 아이디
43
- * **password**: *[필수]* 인증 비밀번호
44
- * **defaultIsolationLevel**: *[옵션]* ISOLATION LEVEL, DIALECT에 따라 입력가능 정보가 다릅니다.
45
- * MSSQL: REPEATABLE_READ, READ_COMMITTED(*기본값*), READ_UNCOMMITTED, SERIALIZABLE, SNAPSHOT
46
- * MYSQL: REPEATABLE_READ(*기본값*), READ_COMMITTED, READ_UNCOMMITTED, SERIALIZABLE
47
- * 자세한 사항은 각 Dialect 공식문서를 참고하세요.
48
-
49
- ## ORM 사용 패키지의 package.json 의존성 추가
50
-
51
- ORM 라이브러리 의존성 추가
52
-
53
- ``` json
54
- {
55
- ...,
56
- "dependencies": {
57
- ...,
58
- "@simplysm/sd-orm-common": "~7.1.0"
59
- }
60
- }
61
- ```
62
-
63
- DB 라이브러리 의존성 추가 예제
64
-
65
- ``` json
66
- {
67
- ...,
68
- "dependencies": {
69
- ...,
70
- "@simplysm-ts/db-main": "1.0.0"
71
- }
72
- }
73
- ```
74
-
75
- 위 의존성은 아래 상황을 가정하여 입력된 예제입니다.
76
- * 프로젝트명: simplysm-ts
77
- * DB패키지명: main
78
- * 프로젝트버전: 1.0.0
79
-
80
- DB 라이브러리 의존성을 추가했다면, 해당 라이브러리를 tsconfig.json에도 경로를 추가해야함
81
- * [내부 라이브러리에 대한 tsconfig.json에 경로 추가](lib-ts-paths.md)
@@ -1,5 +0,0 @@
1
- # simplysm.json 사용법
2
-
3
- * [simplysm.json의 각 패키지 공통설정을 위한 overrides 사용법](conf-overrides.md)
4
- * [simplysm.json에서 빌드타입(dev/prod)에 따른 설정 구분](conf-build-type.md)
5
- * [simplysm.json에서 옵션(@)에 따른 설정 구분](conf-option.md)
@@ -1,50 +0,0 @@
1
- # 라이브러리 패키지 로컬업데이트 설정
2
-
3
- 라이브러리를 로컬 디렉토리에 있는 라이브러리 소스에서 자동으로 업데이트 합니다.
4
-
5
- ## 사용법
6
-
7
- 프로젝트 디렉토리의 simplysm.json 에 다음 옵션을 추가합니다.
8
-
9
- ``` json
10
- {
11
- "packages": {
12
- ...
13
- },
14
- ...,
15
- "localUpdates": {
16
- "@simplysm/*": "../simplysm/packages/*"
17
- }
18
- }
19
- ```
20
- 위 예제는 다음을 의미합니다.
21
- * scope `simplysm` 안의 모든 패키지를 `../simplysm/packages/*`안의 파일로 모두 전환합니다.
22
- * 즉 `node_modules/@simplysm` 폴더에 `../simplysm/packages`폴더를 복사하여 덮어씁니다.
23
-
24
- 이제 다음 명령어를 실행하면 위의 동작이 수행됩니다.
25
-
26
- ``` bat
27
- :: 주의사항: 대상이되는 라이브러리는 반드시 빌드되어 있거나, 변경감지 중이여야 합니다.
28
- :: sd-cli local-update --help 참고
29
- npx sd-cli local-update
30
- ```
31
-
32
- 또한, `sd-cli watch` 를 수행할 경우에는, 로컬 라이브러리 파일이 변경되면 자동으로 해당 파일을 다시 덮어씁니다.
33
-
34
- ## (선택) package.json script 수정
35
-
36
- 로컬업데이트 사용시에는, 다음과 같이 스크립트를 수정하여, `sd-cli`가 수행되기 전에 `local-update`를 수행하는 것을 추천합니다.
37
-
38
- ``` json
39
- {
40
- ...,
41
- "scripts": {
42
- "watch": "sd-cli local-update && sd-cli watch",
43
- "build": "sd-cli local-update && sd-cli build",
44
- "publish": "sd-cli local-update && sd-cli publish",
45
- "----- utils": "",
46
- "postinstall": "npx sd-cli local-update && npx sd-cli prepare"
47
- },
48
- ...
49
- }
50
- ```
@@ -1,25 +0,0 @@
1
- # 내부 라이브러리에 대한 tsconfig.json에 경로 추가
2
-
3
- 내부 라이브러리가 빌드되지 않더라도, IDE 에서 ts 타입을 제대로 체크하도록 tsconfig.json에 baseUrl과 paths를 추가함
4
-
5
- 패키지의 tsconfig.json
6
- ``` json
7
- {
8
- ...,
9
- "compilerOptions": {
10
- ...,
11
- "baseUrl": ".",
12
- "paths": {
13
- ...,
14
- "@simplysm-ts/common": [
15
- "../common/src/index.ts"
16
- ]
17
- }
18
- }
19
- }
20
- ```
21
-
22
- 위 예제은 아래 상황을 가정하여 입력된 예제입니다.
23
- * 프로젝트명: simplysm-ts
24
- * 내부 라이브러리 패키지명: common
25
- * 내부 라이브러리 상대경로: "../common/src/index.ts"
@@ -1,22 +0,0 @@
1
- /* eslint-disable */
2
-
3
- const script = document.createElement("script");
4
- script.onload = () => {
5
- console.log("cordova.js Loaded");
6
- };
7
-
8
- if (process.env["NODE_ENV"] === "production") {
9
- script.src = "cordova.js";
10
- }
11
- else {
12
- if (navigator.userAgent.toLowerCase().indexOf("android") !== -1) {
13
- script.src = "cordova-android/cordova.js";
14
- }
15
- else {
16
- script.src = "cordova-browser/cordova.js";
17
- }
18
- }
19
-
20
- script.defer = true;
21
-
22
- document.body.appendChild(script);
@@ -1,9 +0,0 @@
1
- import { SdError } from "@simplysm/sd-core-common";
2
- import { ISdCliPackageBuildResult } from "./commons";
3
- import { SdCliBuildResultUtil } from "./utils/SdCliBuildResultUtil";
4
-
5
- export class SdCliBuildResultError extends SdError {
6
- public constructor(buildResult: ISdCliPackageBuildResult) {
7
- super(SdCliBuildResultUtil.getMessage(buildResult));
8
- }
9
- }
package/src/bin/sd-cli.ts DELETED
@@ -1,493 +0,0 @@
1
- #!/usr/bin/env node --no-warnings --experimental-specifier-resolution=node --experimental-import-meta-resolve
2
-
3
- import yargs from "yargs";
4
- import { hideBin } from "yargs/helpers";
5
- import { Logger, LoggerSeverity } from "@simplysm/sd-core-node";
6
- import { SdCliProject } from "../entry-points/SdCliProject";
7
- import { SdCliLocalUpdate } from "../entry-points/SdCliLocalUpdate";
8
- import { SdCliPrepare } from "../entry-points/SdCliPrepare";
9
- import { SdCliFileCrypto } from "../entry-points/SdCliFileCrypto";
10
- import { SdCliCordova } from "../build-tool/SdCliCordova";
11
- import { SdCliElectron } from "../build-tool/SdCliElectron";
12
- import { SdCliProjectGenerator } from "../entry-points/SdCliProjectGenerator";
13
-
14
- Error.stackTraceLimit = Infinity;
15
-
16
- const argv = (yargs(hideBin(process.argv)) as any)
17
- .help("help", "도움말")
18
- .alias("help", "h")
19
- .options({
20
- debug: {
21
- type: "boolean",
22
- describe: "디버그 로그를 표시할 것인지 여부",
23
- default: false
24
- }
25
- })
26
- .command(
27
- "prepare",
28
- "sd-cli 준비",
29
- (cmd) => cmd.version(false).hide("help").hide("debug")
30
- )
31
- .command(
32
- "local-update",
33
- "로컬 라이브러리 업데이트를 수행합니다.",
34
- (cmd) => cmd.version(false).hide("help").hide("debug")
35
- .options({
36
- config: {
37
- type: "string",
38
- describe: "simplysm.json 파일 경로"
39
- }
40
- })
41
- )
42
- .command(
43
- "watch",
44
- "프로젝트의 각 패키지에 대한 변경감지 빌드를 수행합니다.",
45
- (cmd) => cmd.version(false).hide("help").hide("debug")
46
- .options({
47
- config: {
48
- type: "string",
49
- describe: "simplysm.json 파일 경로"
50
- },
51
- options: {
52
- type: "string",
53
- array: true,
54
- describe: "옵션 설정 (설정파일에서 @로 시작하는 부분)"
55
- },
56
- packages: {
57
- type: "string",
58
- array: true,
59
- describe: "수행할 패키지 설정"
60
- }
61
- })
62
- )
63
- .command(
64
- "run-electron <package> <url>",
65
- "변경감지중인 플랫폼을 ELECTRON 앱 형태로 띄웁니다.",
66
- (cmd) => cmd
67
- .positional("package", {
68
- type: "string",
69
- describe: "패키지명",
70
- demandOption: true
71
- })
72
- .positional("url", {
73
- type: "string",
74
- describe: "Webview로 오픈할 URL",
75
- demandOption: true
76
- })
77
- .options({
78
- config: {
79
- type: "string",
80
- describe: "simplysm.json 파일 경로"
81
- },
82
- options: {
83
- type: "string",
84
- array: true,
85
- describe: "옵션 설정 (설정파일에서 @로 시작하는 부분)"
86
- }
87
- })
88
- )
89
- .command(
90
- "run-cordova <platform> <package> <url>",
91
- "변경감지중인 플랫폼을 코도바 디바이스에 앱 형태로 띄웁니다.",
92
- (cmd) => cmd
93
- .positional("platform", {
94
- type: "string",
95
- describe: "빌드 플랫폼(android,...)",
96
- demandOption: true
97
- })
98
- .positional("package", {
99
- type: "string",
100
- describe: "패키지명",
101
- demandOption: true
102
- })
103
- .positional("url", {
104
- type: "string",
105
- describe: "Webview로 오픈할 URL",
106
- demandOption: true
107
- })
108
- )
109
- .command(
110
- "build",
111
- "프로젝트의 각 패키지에 대한 빌드를 수행합니다.",
112
- (cmd) => cmd.version(false).hide("help").hide("debug")
113
- .options({
114
- config: {
115
- type: "string",
116
- describe: "simplysm.json 파일 경로"
117
- },
118
- options: {
119
- type: "string",
120
- array: true,
121
- describe: "옵션 설정 (설정파일에서 @로 시작하는 부분)"
122
- },
123
- packages: {
124
- type: "string",
125
- array: true,
126
- describe: "수행할 패키지 설정"
127
- }
128
- })
129
- )
130
- .command(
131
- "publish",
132
- "프로젝트의 각 패키지를 배포합니다.",
133
- (cmd) => cmd.version(false).hide("help").hide("debug")
134
- .options({
135
- noBuild: {
136
- type: "boolean",
137
- describe: "빌드를 하지않고 배포합니다.",
138
- default: false
139
- },
140
- config: {
141
- type: "string",
142
- describe: "simplysm.json 파일 경로"
143
- },
144
- options: {
145
- type: "string",
146
- array: true,
147
- describe: "옵션 설정 (설정파일에서 @로 시작하는 부분)"
148
- },
149
- packages: {
150
- type: "string",
151
- array: true,
152
- describe: "수행할 패키지 설정"
153
- }
154
- })
155
- )
156
- .command(
157
- "enc-file <file>",
158
- "파일을 암호화 합니다.",
159
- (cmd) => cmd.version(false).hide("help").hide("debug")
160
- .positional("file", {
161
- type: "string",
162
- describe: "암호화할 파일명",
163
- demandOption: true
164
- })
165
- )
166
- .command(
167
- "dec-file <file>",
168
- "파일을 복호화 합니다.",
169
- (cmd) => cmd.version(false).hide("help").hide("debug")
170
- .positional("file", {
171
- type: "string",
172
- describe: "암호화된 파일명",
173
- demandOption: true
174
- })
175
- )
176
- .command(
177
- "init <description> <author> <gitUrl> [name]",
178
- "프로젝트를 초기화 합니다.",
179
- (cmd) => cmd.version(false).hide("help").hide("debug")
180
- .positional("description", {
181
- type: "string",
182
- describe: "프로젝트 설명(=명칭)",
183
- demandOption: true
184
- })
185
- .positional("author", {
186
- type: "string",
187
- describe: "작성자",
188
- demandOption: true
189
- })
190
- .positional("gitUrl", {
191
- type: "string",
192
- describe: "소스코드 관리를 위한 GIT 레파지토리 URL",
193
- demandOption: true
194
- })
195
- .positional("name", {
196
- type: "string",
197
- describe: "프로젝트 영문명 (기본값: 최종폴더명)"
198
- })
199
- .example([
200
- ["$0 init sample 샘플프로젝트 홍길동 https://github.com/my/sample.git"]
201
- ])
202
- )
203
- .command(
204
- "add",
205
- "프로젝트에 패키지/기능등을 추가합니다.",
206
- (cmd) => cmd.version(false).hide("help").hide("debug")
207
- .command(
208
- "ts-lib <name> <description>",
209
- "타입스트립트 라이브러리 패키지를 추가합니다.",
210
- (cmd1) => cmd1.version(false).hide("help").hide("debug")
211
- .positional("name", {
212
- type: "string",
213
- describe: "패키지명",
214
- demandOption: true
215
- })
216
- .positional("description", {
217
- type: "string",
218
- describe: "패키지설명",
219
- demandOption: true
220
- })
221
- .options({
222
- useDom: {
223
- type: "boolean",
224
- describe: "DOM객체(window, document 등) 사용 여부",
225
- default: false
226
- },
227
- isForAngular: {
228
- type: "boolean",
229
- describe: "Angular 라이브러리 여부 (useDom 옵션을 덮어씁니다)",
230
- default: false
231
- }
232
- })
233
- .example([
234
- ["$0 add ts-lib common 공통모듈"],
235
- ["$0 sd-cli add ts-lib client-common \"클라이언트 공통\" --useDom"]
236
- ])
237
- )
238
- .command(
239
- "db-lib <name>",
240
- "DB 라이브러리 패키지를 추가합니다.",
241
- (cmd1) => cmd1.version(false).hide("help").hide("debug")
242
- .positional("name", {
243
- type: "string",
244
- describe: "패키지명",
245
- demandOption: true
246
- })
247
- .example([
248
- ["$0 add db-lib main"]
249
- ])
250
- )
251
- .command(
252
- "db-model <dbName> <category> <name> <description>",
253
- "DB 패키지에 모델를 추가합니다.",
254
- (cmd1) => cmd1.version(false).hide("help").hide("debug")
255
- .positional("dbName", {
256
- type: "string",
257
- describe: "DB 패키지 영문명 = 'DbContext'명칭",
258
- demandOption: true
259
- })
260
- .positional("category", {
261
- type: "string",
262
- describe: "추가할 모델의 분류명",
263
- demandOption: true
264
- })
265
- .positional("name", {
266
- type: "string",
267
- describe: "추가할 모델의 명칭 (테이블명)",
268
- demandOption: true
269
- })
270
- .positional("description", {
271
- type: "string",
272
- describe: "추가할 모델의 설명 (테이블 설명)",
273
- demandOption: true
274
- })
275
- .example([
276
- ["$0 add db-model main base Employee 직원"]
277
- ])
278
- )
279
- .command(
280
- "server [name] [description]",
281
- "서버 패키지를 추가합니다.",
282
- (cmd1) => cmd1.version(false).hide("help").hide("debug")
283
- .positional("name", {
284
- type: "string",
285
- describe: "패키지명"
286
- })
287
- .positional("description", {
288
- type: "string",
289
- describe: "패키지 설명"
290
- })
291
- .example([
292
- ["$0 add server"]
293
- ])
294
- )
295
- .command(
296
- "client <name> <description> <serverName>",
297
- "클라이언트 패키지를 추가합니다.",
298
- (cmd1) => cmd1.version(false).hide("help").hide("debug")
299
- .positional("name", {
300
- type: "string",
301
- describe: "패키지명",
302
- demandOption: true
303
- })
304
- .positional("description", {
305
- type: "string",
306
- describe: "패키지 설명",
307
- demandOption: true
308
- })
309
- .positional("serverName", {
310
- type: "string",
311
- describe: "서버 패키지명",
312
- demandOption: true
313
- })
314
- .example([
315
- ["$0 add client admin 관리자 server"]
316
- ])
317
- )
318
- .command(
319
- "page <pkgName> <name> [category]",
320
- "패키지에 페이지를 추가합니다.",
321
- (cmd1) => cmd1.version(false).hide("help").hide("debug")
322
- .positional("pkgName", {
323
- type: "string",
324
- describe: "패키지명",
325
- demandOption: true
326
- })
327
- .positional("name", {
328
- type: "string",
329
- describe: "페이지명",
330
- demandOption: true
331
- })
332
- .positional("category", {
333
- type: "string",
334
- describe: "추가할 페이지의 분류명"
335
- })
336
- .options({
337
- isRouteParent: {
338
- type: "boolean",
339
- describe: "router-outlet 포함 여부",
340
- default: false
341
- }
342
- })
343
- .example([
344
- ["$0 add page admin Employee home/base"]
345
- ])
346
- )
347
- )
348
- .parseSync();
349
-
350
- if (Boolean(argv.debug)) {
351
- process.env["SD_CLI_LOGGER_SEVERITY"] = "DEBUG";
352
-
353
- Logger.setConfig({
354
- console: {
355
- level: LoggerSeverity.debug
356
- }
357
- });
358
- }
359
- else {
360
- Logger.setConfig({
361
- dot: true
362
- });
363
- }
364
-
365
- const logger = Logger.get(["simplysm", "sd-cli", "bin", "sd-cli"]);
366
-
367
- (async () => {
368
- if (argv._[0] === "prepare") {
369
- await new SdCliPrepare()
370
- .prepareAsync();
371
- }
372
- else if (argv._[0] === "local-update") {
373
- await new SdCliLocalUpdate(process.cwd())
374
- .runAsync({
375
- confFileRelPath: argv.config ?? "simplysm.json"
376
- });
377
- }
378
- else if (argv._[0] === "watch") {
379
- await new SdCliProject(process.cwd())
380
- .watchAsync({
381
- confFileRelPath: argv.config ?? "simplysm.json",
382
- optNames: argv.options ?? [],
383
- pkgs: argv.packages ?? []
384
- });
385
- }
386
- else if (argv._[0] === "run-electron") {
387
- await new SdCliElectron(process.cwd())
388
- .runWebviewOnDeviceAsync(
389
- argv.package,
390
- argv.url,
391
- {
392
- confFileRelPath: argv.config ?? "simplysm.json",
393
- optNames: argv.options ?? []
394
- }
395
- );
396
- }
397
- else if (argv._[0] === "run-cordova") {
398
- await SdCliCordova.runWebviewOnDeviceAsync(
399
- process.cwd(),
400
- argv.platform as "browser" | "android",
401
- argv.package,
402
- argv.url
403
- );
404
- }
405
- else if (argv._[0] === "build") {
406
- await new SdCliProject(process.cwd())
407
- .buildAsync({
408
- confFileRelPath: argv.config ?? "simplysm.json",
409
- optNames: argv.options ?? [],
410
- pkgs: argv.packages ?? []
411
- });
412
- process.exit(0);
413
- }
414
- else if (argv._[0] === "publish") {
415
- await new SdCliProject(process.cwd())
416
- .publishAsync({
417
- noBuild: argv.noBuild,
418
- confFileRelPath: argv.config ?? "simplysm.json",
419
- optNames: argv.options ?? [],
420
- pkgs: argv.packages ?? []
421
- });
422
- if (!Boolean(argv.noBuild)) {
423
- process.exit(0);
424
- }
425
- }
426
- else if (argv._[0] === "enc-file") {
427
- await new SdCliFileCrypto().encryptAsync(argv.file!);
428
- }
429
- else if (argv._[0] === "dec-file") {
430
- await new SdCliFileCrypto().decryptAsync(argv.file!);
431
- }
432
- else if (argv._[0] === "init") {
433
- await new SdCliProjectGenerator(process.cwd()).initAsync({
434
- name: argv.name,
435
- description: argv.description!,
436
- author: argv.author,
437
- gitUrl: argv.gitUrl
438
- });
439
- }
440
- else if (argv._[0] === "add") {
441
- if (argv._[1] === "ts-lib") {
442
- await new SdCliProjectGenerator(process.cwd()).addTsLibAsync({
443
- name: argv.name!,
444
- description: argv.description!,
445
- useDom: argv.useDom,
446
- isForAngular: argv.isForAngular
447
- });
448
- }
449
- else if (argv._[1] === "db-lib") {
450
- await new SdCliProjectGenerator(process.cwd()).addDbLibAsync({
451
- name: argv.name!
452
- });
453
- }
454
- else if (argv._[1] === "db-model") {
455
- await new SdCliProjectGenerator(process.cwd()).addDbLibModelAsync({
456
- dbPkgName: argv.dbName,
457
- category: argv.category,
458
- name: argv.name!,
459
- description: argv.description!
460
- });
461
- }
462
- else if (argv._[1] === "page") {
463
- await new SdCliProjectGenerator(process.cwd()).addPageAsync({
464
- pkgName: argv.pkgName,
465
- category: argv.category,
466
- name: argv.name!,
467
- isRouteParent: argv.isRouteParent
468
- });
469
- }
470
- else if (argv._[1] === "server") {
471
- await new SdCliProjectGenerator(process.cwd()).addServerAsync({
472
- name: argv.name,
473
- description: argv.description
474
- });
475
- }
476
- else if (argv._[1] === "client") {
477
- await new SdCliProjectGenerator(process.cwd()).addClientAsync({
478
- name: argv.name!,
479
- description: argv.description!,
480
- serverName: argv.serverName
481
- });
482
- }
483
- else {
484
- throw new Error(`명령어가 잘못 되었습니다.\n\t${argv._[1]}\n`);
485
- }
486
- }
487
- else {
488
- throw new Error(`명령어가 잘못 되었습니다.\n\t${argv._[0]}\n`);
489
- }
490
- })().catch((err) => {
491
- logger.error(err);
492
- process.exit(1);
493
- });