@enspirit/emb 0.0.1 → 0.0.3

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 (164) hide show
  1. package/README.md +190 -164
  2. package/bin/run.js +8 -2
  3. package/dist/src/cli/abstract/FlavouredCommand.d.ts +12 -0
  4. package/dist/src/cli/abstract/FlavouredCommand.js +40 -0
  5. package/dist/src/cli/abstract/index.d.ts +1 -0
  6. package/dist/src/cli/abstract/index.js +1 -0
  7. package/dist/src/cli/commands/clean.d.ts +15 -0
  8. package/dist/src/cli/commands/clean.js +29 -0
  9. package/dist/src/cli/commands/components/build.d.ts +11 -0
  10. package/dist/src/cli/commands/components/build.js +24 -0
  11. package/dist/src/cli/commands/components/index.d.ts +14 -0
  12. package/dist/src/cli/commands/components/index.js +44 -0
  13. package/dist/src/cli/commands/config/print.d.ts +13 -0
  14. package/dist/src/cli/commands/config/print.js +16 -0
  15. package/dist/src/cli/commands/containers/index.d.ts +12 -0
  16. package/dist/src/cli/commands/containers/index.js +66 -0
  17. package/dist/src/cli/commands/containers/prune.d.ts +8 -0
  18. package/dist/src/cli/commands/containers/prune.js +23 -0
  19. package/dist/src/cli/commands/down.d.ts +8 -0
  20. package/dist/src/cli/commands/down.js +42 -0
  21. package/dist/src/cli/commands/images/delete.d.ts +10 -0
  22. package/dist/src/cli/commands/images/delete.js +44 -0
  23. package/dist/src/cli/commands/images/index.d.ts +17 -0
  24. package/dist/src/cli/commands/images/index.js +59 -0
  25. package/dist/src/cli/commands/images/prune.d.ts +11 -0
  26. package/dist/src/cli/commands/images/prune.js +35 -0
  27. package/dist/src/cli/commands/run/index.d.ts +10 -0
  28. package/dist/src/cli/commands/run/index.js +49 -0
  29. package/dist/src/cli/commands/tasks/index.d.ts +9 -0
  30. package/dist/src/cli/commands/tasks/index.js +23 -0
  31. package/dist/src/cli/commands/tasks/run.d.ts +16 -0
  32. package/dist/src/cli/commands/tasks/run.js +113 -0
  33. package/dist/src/cli/commands/up.d.ts +10 -0
  34. package/dist/src/cli/commands/up.js +49 -0
  35. package/dist/src/cli/constants.d.ts +2 -0
  36. package/dist/src/cli/constants.js +6 -0
  37. package/dist/src/cli/hooks/init.d.ts +3 -0
  38. package/dist/src/cli/hooks/init.js +27 -0
  39. package/dist/src/cli/index.d.ts +3 -0
  40. package/dist/src/cli/index.js +3 -0
  41. package/dist/src/config/convert.d.ts +5 -0
  42. package/dist/src/config/convert.js +48 -0
  43. package/dist/src/config/index.d.ts +6 -0
  44. package/dist/src/config/index.js +25 -0
  45. package/dist/src/config/schema.d.ts +102 -0
  46. package/dist/src/config/schema.js +7 -0
  47. package/dist/src/config/schema.json +209 -0
  48. package/dist/src/config/types.d.ts +43 -0
  49. package/dist/src/config/types.js +1 -0
  50. package/dist/src/config/validation.d.ts +1 -0
  51. package/dist/src/config/validation.js +27 -0
  52. package/dist/src/context.d.ts +3 -0
  53. package/dist/src/context.js +7 -0
  54. package/dist/src/docker/compose/index.d.ts +7 -0
  55. package/dist/src/docker/compose/index.js +13 -0
  56. package/dist/src/docker/containers/getContainer.d.ts +2 -0
  57. package/dist/src/docker/containers/getContainer.js +5 -0
  58. package/dist/src/docker/containers/index.d.ts +1 -0
  59. package/dist/src/docker/containers/index.js +1 -0
  60. package/dist/src/docker/images/buildImage.d.ts +19 -0
  61. package/dist/src/docker/images/buildImage.js +64 -0
  62. package/dist/src/docker/images/deleteImage.d.ts +5 -0
  63. package/dist/src/docker/images/deleteImage.js +6 -0
  64. package/dist/src/docker/images/index.d.ts +4 -0
  65. package/dist/src/docker/images/index.js +4 -0
  66. package/dist/src/docker/images/listImages.d.ts +2 -0
  67. package/dist/src/docker/images/listImages.js +8 -0
  68. package/dist/src/docker/images/pruneImages.d.ts +6 -0
  69. package/dist/src/docker/images/pruneImages.js +8 -0
  70. package/dist/src/docker/index.d.ts +7 -0
  71. package/dist/src/docker/index.js +7 -0
  72. package/dist/src/docker/operations/containers/ListContainersOperation.d.ts +18 -0
  73. package/dist/src/docker/operations/containers/ListContainersOperation.js +44 -0
  74. package/dist/src/docker/operations/containers/PruneContainersOperation.d.ts +16 -0
  75. package/dist/src/docker/operations/containers/PruneContainersOperation.js +33 -0
  76. package/dist/src/docker/operations/containers/index.d.ts +2 -0
  77. package/dist/src/docker/operations/containers/index.js +2 -0
  78. package/dist/src/docker/operations/images/BuildImageOperation.d.ts +20 -0
  79. package/dist/src/docker/operations/images/BuildImageOperation.js +69 -0
  80. package/dist/src/docker/operations/images/ListImagesOperation.d.ts +17 -0
  81. package/dist/src/docker/operations/images/ListImagesOperation.js +38 -0
  82. package/dist/src/docker/operations/images/PruneImagesOperation.d.ts +16 -0
  83. package/dist/src/docker/operations/images/PruneImagesOperation.js +33 -0
  84. package/dist/src/docker/operations/images/index.d.ts +3 -0
  85. package/dist/src/docker/operations/images/index.js +3 -0
  86. package/dist/src/docker/operations/index.d.ts +2 -0
  87. package/dist/src/docker/operations/index.js +2 -0
  88. package/dist/src/docker/protobuf/control.proto +48 -0
  89. package/dist/src/docker/protobuf/index.d.ts +5 -0
  90. package/dist/src/docker/protobuf/index.js +29 -0
  91. package/dist/src/docker/types.d.ts +14 -0
  92. package/dist/src/docker/types.js +1 -0
  93. package/dist/src/docker/utils.d.ts +7 -0
  94. package/dist/src/docker/utils.js +10 -0
  95. package/dist/src/executors/docker.d.ts +6 -0
  96. package/dist/src/executors/docker.js +14 -0
  97. package/dist/src/executors/index.d.ts +6 -0
  98. package/dist/src/executors/index.js +7 -0
  99. package/dist/src/executors/shell.d.ts +2 -0
  100. package/dist/src/executors/shell.js +14 -0
  101. package/dist/src/executors/types.d.ts +8 -0
  102. package/dist/src/executors/types.js +1 -0
  103. package/dist/src/index.d.ts +3 -0
  104. package/dist/src/index.js +3 -0
  105. package/dist/src/monorepo/component.d.ts +24 -0
  106. package/dist/src/monorepo/component.js +77 -0
  107. package/dist/src/monorepo/config.d.ts +16 -0
  108. package/dist/src/monorepo/config.js +66 -0
  109. package/dist/src/monorepo/index.d.ts +7 -0
  110. package/dist/src/monorepo/index.js +7 -0
  111. package/dist/src/monorepo/monorepo.d.ts +29 -0
  112. package/dist/src/monorepo/monorepo.js +106 -0
  113. package/dist/src/monorepo/operations/components/BuildComponentsOperation.d.ts +11 -0
  114. package/dist/src/monorepo/operations/components/BuildComponentsOperation.js +144 -0
  115. package/dist/src/monorepo/operations/components/index.d.ts +1 -0
  116. package/dist/src/monorepo/operations/components/index.js +1 -0
  117. package/dist/src/monorepo/operations/index.d.ts +1 -0
  118. package/dist/src/monorepo/operations/index.js +1 -0
  119. package/dist/src/monorepo/plugins/ComponentsDiscover.d.ts +6 -0
  120. package/dist/src/monorepo/plugins/ComponentsDiscover.js +30 -0
  121. package/dist/src/monorepo/plugins/DotEnvPlugin.d.ts +5 -0
  122. package/dist/src/monorepo/plugins/DotEnvPlugin.js +11 -0
  123. package/dist/src/monorepo/plugins/index.d.ts +7 -0
  124. package/dist/src/monorepo/plugins/index.js +20 -0
  125. package/dist/src/monorepo/plugins/plugin.d.ts +15 -0
  126. package/dist/src/monorepo/plugins/plugin.js +12 -0
  127. package/dist/src/monorepo/project.d.ts +6 -0
  128. package/dist/src/monorepo/project.js +8 -0
  129. package/dist/src/monorepo/store/index.d.ts +20 -0
  130. package/dist/src/monorepo/store/index.js +65 -0
  131. package/dist/src/monorepo/types.d.ts +7 -0
  132. package/dist/src/monorepo/types.js +1 -0
  133. package/dist/src/monorepo/utils/findBuildOrder.d.ts +2 -0
  134. package/dist/src/monorepo/utils/findBuildOrder.js +41 -0
  135. package/dist/src/monorepo/utils/index.d.ts +1 -0
  136. package/dist/src/monorepo/utils/index.js +1 -0
  137. package/dist/src/operations/abstract/AbstractOperation.d.ts +10 -0
  138. package/dist/src/operations/abstract/AbstractOperation.js +13 -0
  139. package/dist/src/operations/abstract/index.d.ts +1 -0
  140. package/dist/src/operations/abstract/index.js +1 -0
  141. package/dist/src/operations/index.d.ts +2 -0
  142. package/dist/src/operations/index.js +2 -0
  143. package/dist/src/operations/types.d.ts +3 -0
  144. package/dist/src/operations/types.js +1 -0
  145. package/dist/src/prerequisites/FilePrerequisitePlugin.d.ts +7 -0
  146. package/dist/src/prerequisites/FilePrerequisitePlugin.js +41 -0
  147. package/dist/src/prerequisites/GitPrerequisitePlugin.d.ts +5 -0
  148. package/dist/src/prerequisites/GitPrerequisitePlugin.js +17 -0
  149. package/dist/src/prerequisites/index.d.ts +3 -0
  150. package/dist/src/prerequisites/index.js +3 -0
  151. package/dist/src/prerequisites/types.d.ts +46 -0
  152. package/dist/src/prerequisites/types.js +24 -0
  153. package/dist/src/types.d.ts +13 -0
  154. package/dist/src/types.js +1 -0
  155. package/dist/src/utils/TemplateExpander.d.ts +21 -0
  156. package/dist/src/utils/TemplateExpander.js +53 -0
  157. package/dist/src/utils/deepMergeArray.d.ts +1 -0
  158. package/dist/src/utils/deepMergeArray.js +19 -0
  159. package/dist/src/utils/index.d.ts +3 -0
  160. package/dist/src/utils/index.js +3 -0
  161. package/dist/src/utils/time.d.ts +2 -0
  162. package/dist/src/utils/time.js +19 -0
  163. package/oclif.manifest.json +572 -2
  164. package/package.json +10 -9
@@ -1,4 +1,574 @@
1
1
  {
2
- "commands": {},
3
- "version": "0.0.1"
2
+ "commands": {
3
+ "clean": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "Clean the project.",
7
+ "examples": [
8
+ "<%= config.bin %> <%= command.id %>"
9
+ ],
10
+ "flags": {
11
+ "json": {
12
+ "description": "Format output as json.",
13
+ "helpGroup": "GLOBAL",
14
+ "name": "json",
15
+ "allowNo": false,
16
+ "type": "boolean"
17
+ }
18
+ },
19
+ "hasDynamicHelp": false,
20
+ "hiddenAliases": [],
21
+ "id": "clean",
22
+ "pluginAlias": "@enspirit/emb",
23
+ "pluginName": "@enspirit/emb",
24
+ "pluginType": "core",
25
+ "strict": true,
26
+ "enableJsonFlag": true,
27
+ "isESM": true,
28
+ "relativePath": [
29
+ "dist",
30
+ "src",
31
+ "cli",
32
+ "commands",
33
+ "clean.js"
34
+ ]
35
+ },
36
+ "down": {
37
+ "aliases": [],
38
+ "args": {},
39
+ "description": "Stop the whole project.",
40
+ "examples": [
41
+ "<%= config.bin %> <%= command.id %>"
42
+ ],
43
+ "flags": {
44
+ "json": {
45
+ "description": "Format output as json.",
46
+ "helpGroup": "GLOBAL",
47
+ "name": "json",
48
+ "allowNo": false,
49
+ "type": "boolean"
50
+ }
51
+ },
52
+ "hasDynamicHelp": false,
53
+ "hiddenAliases": [],
54
+ "id": "down",
55
+ "pluginAlias": "@enspirit/emb",
56
+ "pluginName": "@enspirit/emb",
57
+ "pluginType": "core",
58
+ "strict": true,
59
+ "enableJsonFlag": true,
60
+ "isESM": true,
61
+ "relativePath": [
62
+ "dist",
63
+ "src",
64
+ "cli",
65
+ "commands",
66
+ "down.js"
67
+ ]
68
+ },
69
+ "up": {
70
+ "aliases": [],
71
+ "args": {},
72
+ "description": "Start the whole project.",
73
+ "examples": [
74
+ "<%= config.bin %> <%= command.id %>"
75
+ ],
76
+ "flags": {
77
+ "json": {
78
+ "description": "Format output as json.",
79
+ "helpGroup": "GLOBAL",
80
+ "name": "json",
81
+ "allowNo": false,
82
+ "type": "boolean"
83
+ },
84
+ "flavor": {
85
+ "description": "Specify the flavor to use.",
86
+ "name": "flavor",
87
+ "required": false,
88
+ "hasDynamicHelp": false,
89
+ "multiple": false,
90
+ "type": "option"
91
+ },
92
+ "force-recreate": {
93
+ "char": "f",
94
+ "description": "Recreate containers even if their configuration and image haven't changed",
95
+ "name": "force-recreate",
96
+ "allowNo": false,
97
+ "type": "boolean"
98
+ }
99
+ },
100
+ "hasDynamicHelp": false,
101
+ "hiddenAliases": [],
102
+ "id": "up",
103
+ "pluginAlias": "@enspirit/emb",
104
+ "pluginName": "@enspirit/emb",
105
+ "pluginType": "core",
106
+ "strict": true,
107
+ "enableJsonFlag": true,
108
+ "isESM": true,
109
+ "relativePath": [
110
+ "dist",
111
+ "src",
112
+ "cli",
113
+ "commands",
114
+ "up.js"
115
+ ]
116
+ },
117
+ "components:build": {
118
+ "aliases": [],
119
+ "args": {
120
+ "component": {
121
+ "description": "List of components to build",
122
+ "name": "component",
123
+ "required": false
124
+ }
125
+ },
126
+ "description": "Build the components of the monorepo",
127
+ "examples": [
128
+ "<%= config.bin %> <%= command.id %> build --flavor development"
129
+ ],
130
+ "flags": {
131
+ "json": {
132
+ "description": "Format output as json.",
133
+ "helpGroup": "GLOBAL",
134
+ "name": "json",
135
+ "allowNo": false,
136
+ "type": "boolean"
137
+ },
138
+ "flavor": {
139
+ "description": "Specify the flavor to use.",
140
+ "name": "flavor",
141
+ "required": false,
142
+ "hasDynamicHelp": false,
143
+ "multiple": false,
144
+ "type": "option"
145
+ }
146
+ },
147
+ "hasDynamicHelp": false,
148
+ "hiddenAliases": [],
149
+ "id": "components:build",
150
+ "pluginAlias": "@enspirit/emb",
151
+ "pluginName": "@enspirit/emb",
152
+ "pluginType": "core",
153
+ "strict": false,
154
+ "enableJsonFlag": true,
155
+ "isESM": true,
156
+ "relativePath": [
157
+ "dist",
158
+ "src",
159
+ "cli",
160
+ "commands",
161
+ "components",
162
+ "build.js"
163
+ ]
164
+ },
165
+ "components": {
166
+ "aliases": [],
167
+ "args": {},
168
+ "description": "List components.",
169
+ "examples": [
170
+ "<%= config.bin %> <%= command.id %>"
171
+ ],
172
+ "flags": {
173
+ "json": {
174
+ "description": "Format output as json.",
175
+ "helpGroup": "GLOBAL",
176
+ "name": "json",
177
+ "allowNo": false,
178
+ "type": "boolean"
179
+ },
180
+ "flavor": {
181
+ "description": "Specify the flavor to use.",
182
+ "name": "flavor",
183
+ "required": false,
184
+ "hasDynamicHelp": false,
185
+ "multiple": false,
186
+ "type": "option"
187
+ }
188
+ },
189
+ "hasDynamicHelp": false,
190
+ "hiddenAliases": [],
191
+ "id": "components",
192
+ "pluginAlias": "@enspirit/emb",
193
+ "pluginName": "@enspirit/emb",
194
+ "pluginType": "core",
195
+ "strict": true,
196
+ "enableJsonFlag": true,
197
+ "isESM": true,
198
+ "relativePath": [
199
+ "dist",
200
+ "src",
201
+ "cli",
202
+ "commands",
203
+ "components",
204
+ "index.js"
205
+ ]
206
+ },
207
+ "config:print": {
208
+ "aliases": [],
209
+ "args": {},
210
+ "description": "Print the current config.",
211
+ "examples": [
212
+ "<%= config.bin %> <%= command.id %>"
213
+ ],
214
+ "flags": {
215
+ "json": {
216
+ "description": "Format output as json.",
217
+ "helpGroup": "GLOBAL",
218
+ "name": "json",
219
+ "allowNo": false,
220
+ "type": "boolean"
221
+ },
222
+ "flavor": {
223
+ "description": "Specify the flavor to use.",
224
+ "name": "flavor",
225
+ "required": false,
226
+ "hasDynamicHelp": false,
227
+ "multiple": false,
228
+ "type": "option"
229
+ }
230
+ },
231
+ "hasDynamicHelp": false,
232
+ "hiddenAliases": [],
233
+ "id": "config:print",
234
+ "pluginAlias": "@enspirit/emb",
235
+ "pluginName": "@enspirit/emb",
236
+ "pluginType": "core",
237
+ "strict": true,
238
+ "enableJsonFlag": true,
239
+ "isESM": true,
240
+ "relativePath": [
241
+ "dist",
242
+ "src",
243
+ "cli",
244
+ "commands",
245
+ "config",
246
+ "print.js"
247
+ ]
248
+ },
249
+ "containers": {
250
+ "aliases": [
251
+ "ps"
252
+ ],
253
+ "args": {},
254
+ "description": "List docker containers.",
255
+ "examples": [
256
+ "<%= config.bin %> <%= command.id %>"
257
+ ],
258
+ "flags": {
259
+ "json": {
260
+ "description": "Format output as json.",
261
+ "helpGroup": "GLOBAL",
262
+ "name": "json",
263
+ "allowNo": false,
264
+ "type": "boolean"
265
+ },
266
+ "all": {
267
+ "char": "a",
268
+ "description": "Retun all containers. By default, only running containers are shown",
269
+ "name": "all",
270
+ "required": false,
271
+ "allowNo": false,
272
+ "type": "boolean"
273
+ }
274
+ },
275
+ "hasDynamicHelp": false,
276
+ "hiddenAliases": [],
277
+ "id": "containers",
278
+ "pluginAlias": "@enspirit/emb",
279
+ "pluginName": "@enspirit/emb",
280
+ "pluginType": "core",
281
+ "strict": true,
282
+ "enableJsonFlag": true,
283
+ "isESM": true,
284
+ "relativePath": [
285
+ "dist",
286
+ "src",
287
+ "cli",
288
+ "commands",
289
+ "containers",
290
+ "index.js"
291
+ ]
292
+ },
293
+ "containers:prune": {
294
+ "aliases": [],
295
+ "args": {},
296
+ "description": "Prune containers.",
297
+ "examples": [
298
+ "<%= config.bin %> <%= command.id %>"
299
+ ],
300
+ "flags": {
301
+ "json": {
302
+ "description": "Format output as json.",
303
+ "helpGroup": "GLOBAL",
304
+ "name": "json",
305
+ "allowNo": false,
306
+ "type": "boolean"
307
+ }
308
+ },
309
+ "hasDynamicHelp": false,
310
+ "hiddenAliases": [],
311
+ "id": "containers:prune",
312
+ "pluginAlias": "@enspirit/emb",
313
+ "pluginName": "@enspirit/emb",
314
+ "pluginType": "core",
315
+ "strict": true,
316
+ "enableJsonFlag": true,
317
+ "isESM": true,
318
+ "relativePath": [
319
+ "dist",
320
+ "src",
321
+ "cli",
322
+ "commands",
323
+ "containers",
324
+ "prune.js"
325
+ ]
326
+ },
327
+ "images:delete": {
328
+ "aliases": [],
329
+ "args": {},
330
+ "description": "Delete project images.",
331
+ "examples": [
332
+ "<%= config.bin %> <%= command.id %>"
333
+ ],
334
+ "flags": {
335
+ "json": {
336
+ "description": "Format output as json.",
337
+ "helpGroup": "GLOBAL",
338
+ "name": "json",
339
+ "allowNo": false,
340
+ "type": "boolean"
341
+ },
342
+ "force": {
343
+ "char": "f",
344
+ "description": "Remove the image even if it is being used by stopped containers or has other tags",
345
+ "name": "force",
346
+ "required": false,
347
+ "allowNo": false,
348
+ "type": "boolean"
349
+ }
350
+ },
351
+ "hasDynamicHelp": false,
352
+ "hiddenAliases": [],
353
+ "id": "images:delete",
354
+ "pluginAlias": "@enspirit/emb",
355
+ "pluginName": "@enspirit/emb",
356
+ "pluginType": "core",
357
+ "strict": true,
358
+ "enableJsonFlag": true,
359
+ "isESM": true,
360
+ "relativePath": [
361
+ "dist",
362
+ "src",
363
+ "cli",
364
+ "commands",
365
+ "images",
366
+ "delete.js"
367
+ ]
368
+ },
369
+ "images": {
370
+ "aliases": [],
371
+ "args": {},
372
+ "description": "List docker images.",
373
+ "examples": [
374
+ "<%= config.bin %> <%= command.id %>"
375
+ ],
376
+ "flags": {
377
+ "json": {
378
+ "description": "Format output as json.",
379
+ "helpGroup": "GLOBAL",
380
+ "name": "json",
381
+ "allowNo": false,
382
+ "type": "boolean"
383
+ },
384
+ "all": {
385
+ "char": "a",
386
+ "description": "Show all images. Only images from a final layer (no children) are shown by default.",
387
+ "name": "all",
388
+ "required": false,
389
+ "allowNo": false,
390
+ "type": "boolean"
391
+ }
392
+ },
393
+ "hasDynamicHelp": false,
394
+ "hiddenAliases": [],
395
+ "id": "images",
396
+ "pluginAlias": "@enspirit/emb",
397
+ "pluginName": "@enspirit/emb",
398
+ "pluginType": "core",
399
+ "strict": true,
400
+ "enableJsonFlag": true,
401
+ "isESM": true,
402
+ "relativePath": [
403
+ "dist",
404
+ "src",
405
+ "cli",
406
+ "commands",
407
+ "images",
408
+ "index.js"
409
+ ]
410
+ },
411
+ "images:prune": {
412
+ "aliases": [],
413
+ "args": {},
414
+ "description": "Prune project images.",
415
+ "examples": [
416
+ "<%= config.bin %> <%= command.id %>"
417
+ ],
418
+ "flags": {
419
+ "json": {
420
+ "description": "Format output as json.",
421
+ "helpGroup": "GLOBAL",
422
+ "name": "json",
423
+ "allowNo": false,
424
+ "type": "boolean"
425
+ },
426
+ "all": {
427
+ "char": "a",
428
+ "description": "Prune all images. When set to true all images will be pruned, not only dangling ones",
429
+ "name": "all",
430
+ "required": false,
431
+ "allowNo": false,
432
+ "type": "boolean"
433
+ }
434
+ },
435
+ "hasDynamicHelp": false,
436
+ "hiddenAliases": [],
437
+ "id": "images:prune",
438
+ "pluginAlias": "@enspirit/emb",
439
+ "pluginName": "@enspirit/emb",
440
+ "pluginType": "core",
441
+ "strict": true,
442
+ "enableJsonFlag": true,
443
+ "isESM": true,
444
+ "relativePath": [
445
+ "dist",
446
+ "src",
447
+ "cli",
448
+ "commands",
449
+ "images",
450
+ "prune.js"
451
+ ]
452
+ },
453
+ "tasks": {
454
+ "aliases": [],
455
+ "args": {},
456
+ "description": "List tasks.",
457
+ "examples": [
458
+ "<%= config.bin %> <%= command.id %>"
459
+ ],
460
+ "flags": {
461
+ "json": {
462
+ "description": "Format output as json.",
463
+ "helpGroup": "GLOBAL",
464
+ "name": "json",
465
+ "allowNo": false,
466
+ "type": "boolean"
467
+ }
468
+ },
469
+ "hasDynamicHelp": false,
470
+ "hiddenAliases": [],
471
+ "id": "tasks",
472
+ "pluginAlias": "@enspirit/emb",
473
+ "pluginName": "@enspirit/emb",
474
+ "pluginType": "core",
475
+ "strict": true,
476
+ "enableJsonFlag": true,
477
+ "isESM": true,
478
+ "relativePath": [
479
+ "dist",
480
+ "src",
481
+ "cli",
482
+ "commands",
483
+ "tasks",
484
+ "index.js"
485
+ ]
486
+ },
487
+ "tasks:run": {
488
+ "aliases": [],
489
+ "args": {
490
+ "task": {
491
+ "description": "List of tasks ids to run (eg: component:task)",
492
+ "name": "task",
493
+ "required": false
494
+ }
495
+ },
496
+ "description": "Run a task.",
497
+ "examples": [
498
+ "<%= config.bin %> <%= command.id %>"
499
+ ],
500
+ "flags": {
501
+ "json": {
502
+ "description": "Format output as json.",
503
+ "helpGroup": "GLOBAL",
504
+ "name": "json",
505
+ "allowNo": false,
506
+ "type": "boolean"
507
+ },
508
+ "executor": {
509
+ "char": "x",
510
+ "name": "executor",
511
+ "hasDynamicHelp": false,
512
+ "multiple": false,
513
+ "options": [
514
+ "container",
515
+ "local"
516
+ ],
517
+ "type": "option"
518
+ }
519
+ },
520
+ "hasDynamicHelp": false,
521
+ "hiddenAliases": [],
522
+ "id": "tasks:run",
523
+ "pluginAlias": "@enspirit/emb",
524
+ "pluginName": "@enspirit/emb",
525
+ "pluginType": "core",
526
+ "strict": false,
527
+ "enableJsonFlag": true,
528
+ "isESM": true,
529
+ "relativePath": [
530
+ "dist",
531
+ "src",
532
+ "cli",
533
+ "commands",
534
+ "tasks",
535
+ "run.js"
536
+ ]
537
+ },
538
+ "run": {
539
+ "aliases": [],
540
+ "args": {
541
+ "component": {
542
+ "description": "Component name",
543
+ "name": "component",
544
+ "required": true
545
+ },
546
+ "script": {
547
+ "description": "NPM script to run",
548
+ "name": "script",
549
+ "required": true
550
+ }
551
+ },
552
+ "description": "Run an npm script from a component's package.json",
553
+ "flags": {},
554
+ "hasDynamicHelp": false,
555
+ "hiddenAliases": [],
556
+ "id": "run",
557
+ "pluginAlias": "@enspirit/emb",
558
+ "pluginName": "@enspirit/emb",
559
+ "pluginType": "core",
560
+ "strict": true,
561
+ "enableJsonFlag": false,
562
+ "isESM": true,
563
+ "relativePath": [
564
+ "dist",
565
+ "src",
566
+ "cli",
567
+ "commands",
568
+ "run",
569
+ "index.js"
570
+ ]
571
+ }
572
+ },
573
+ "version": "0.0.3"
4
574
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@enspirit/emb",
3
3
  "type": "module",
4
- "version": "0.0.1",
4
+ "version": "0.0.3",
5
5
  "keywords": ["monorepo", "docker", "taskrunner", "ci", "docker compose", "sentinel", "makefile"],
6
6
  "author": "Louis Lambeau <louis.lambeau@enspirit.be>",
7
7
  "license": "ISC",
@@ -15,10 +15,12 @@
15
15
  "build:ts": "tsc -b && tsc-alias",
16
16
  "build:types": "json2ts src/config/schema.json > src/config/schema.ts",
17
17
  "lint": "eslint",
18
+ "lint:fix": "eslint --fix",
18
19
  "pack": "npm run pack:macos && npm run pack:deb",
19
20
  "pack:macos": "oclif pack macos",
20
21
  "pack:deb": "oclif pack deb",
21
22
  "postpack": "shx rm -f oclif.manifest.json",
23
+ "postbuild": "oclif manifest --dir dist",
22
24
  "posttest": "npm run lint",
23
25
  "prepack": "oclif manifest && oclif readme",
24
26
  "test": "npm run build:types && npm run test:unit",
@@ -33,9 +35,9 @@
33
35
  "@oclif/plugin-autocomplete": "^3.2.34",
34
36
  "@oclif/plugin-help": "^6.2.32",
35
37
  "@oclif/plugin-not-found": "^3.2.63",
36
- "@oclif/plugin-plugins": "^5.4.46",
37
38
  "@oclif/table": "^0.4.12",
38
39
  "ajv": "^8.17.1",
40
+ "colorette": "^2.0.20",
39
41
  "docker-compose": "^1.2.0",
40
42
  "dockerode": "^4.0.7",
41
43
  "dotenv": "^17.2.1",
@@ -46,8 +48,10 @@
46
48
  "listr2": "^9.0.1",
47
49
  "luxon": "^3.7.1",
48
50
  "protobufjs": "^7.5.3",
51
+ "p-map": "^7.0.3",
49
52
  "simple-git": "^3.28.0",
50
- "yaml": "^2.8.1"
53
+ "yaml": "^2.8.1",
54
+ "zod": "^4.0.16"
51
55
  },
52
56
  "devDependencies": {
53
57
  "@eslint/eslintrc": "^3.3.1",
@@ -75,7 +79,8 @@
75
79
  "tsc-alias": "^1.8.16",
76
80
  "tsx": "^4.20.3",
77
81
  "typescript": "^5.9.2",
78
- "vitest": "^3.2.4"
82
+ "vitest": "^3.2.4",
83
+ "vite-tsconfig-paths": "^5.1.4"
79
84
  },
80
85
  "engines": {
81
86
  "node": ">=20.0.0"
@@ -99,14 +104,10 @@
99
104
  "plugins": [
100
105
  "@oclif/plugin-help",
101
106
  "@oclif/plugin-autocomplete",
102
- "@oclif/plugin-not-found",
103
- "@oclif/plugin-plugins"
107
+ "@oclif/plugin-not-found"
104
108
  ],
105
109
  "topicSeparator": " ",
106
110
  "topics": {
107
- "hello": {
108
- "description": "Say hello to the world and others"
109
- }
110
111
  }
111
112
  }
112
113
  }