@enspirit/emb 0.25.1 → 0.25.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.
package/README.md CHANGED
@@ -14,7 +14,7 @@ $ npm install -g @enspirit/emb
14
14
  $ emb COMMAND
15
15
  running command...
16
16
  $ emb (--version)
17
- @enspirit/emb/0.25.1 darwin-arm64 node-v22.21.1
17
+ @enspirit/emb/0.25.3 darwin-x64 node-v22.18.0
18
18
  $ emb --help [COMMAND]
19
19
  USAGE
20
20
  $ emb COMMAND
@@ -113,7 +113,7 @@ EXAMPLES
113
113
  $ emb clean
114
114
  ```
115
115
 
116
- _See code: [src/commands/clean.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/clean.ts)_
116
+ _See code: [src/commands/clean.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/clean.ts)_
117
117
 
118
118
  ## `emb components`
119
119
 
@@ -138,7 +138,7 @@ EXAMPLES
138
138
  $ emb components
139
139
  ```
140
140
 
141
- _See code: [src/commands/components/index.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/components/index.ts)_
141
+ _See code: [src/commands/components/index.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/components/index.ts)_
142
142
 
143
143
  ## `emb components shell SERVICE`
144
144
 
@@ -166,7 +166,7 @@ EXAMPLES
166
166
  $ emb components shell
167
167
  ```
168
168
 
169
- _See code: [src/commands/components/shell.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/components/shell.ts)_
169
+ _See code: [src/commands/components/shell.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/components/shell.ts)_
170
170
 
171
171
  ## `emb config print`
172
172
 
@@ -191,7 +191,7 @@ EXAMPLES
191
191
  $ emb config print
192
192
  ```
193
193
 
194
- _See code: [src/commands/config/print.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/config/print.ts)_
194
+ _See code: [src/commands/config/print.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/config/print.ts)_
195
195
 
196
196
  ## `emb containers`
197
197
 
@@ -216,7 +216,7 @@ EXAMPLES
216
216
  $ emb containers
217
217
  ```
218
218
 
219
- _See code: [src/commands/containers/index.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/containers/index.ts)_
219
+ _See code: [src/commands/containers/index.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/containers/index.ts)_
220
220
 
221
221
  ## `emb containers prune`
222
222
 
@@ -240,7 +240,7 @@ EXAMPLES
240
240
  $ emb containers prune
241
241
  ```
242
242
 
243
- _See code: [src/commands/containers/prune.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/containers/prune.ts)_
243
+ _See code: [src/commands/containers/prune.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/containers/prune.ts)_
244
244
 
245
245
  ## `emb down [SERVICE]`
246
246
 
@@ -268,7 +268,7 @@ EXAMPLES
268
268
  $ emb down
269
269
  ```
270
270
 
271
- _See code: [src/commands/down.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/down.ts)_
271
+ _See code: [src/commands/down.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/down.ts)_
272
272
 
273
273
  ## `emb help [COMMAND]`
274
274
 
@@ -314,7 +314,7 @@ EXAMPLES
314
314
  $ emb images
315
315
  ```
316
316
 
317
- _See code: [src/commands/images/index.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/images/index.ts)_
317
+ _See code: [src/commands/images/index.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/images/index.ts)_
318
318
 
319
319
  ## `emb images delete`
320
320
 
@@ -339,7 +339,7 @@ EXAMPLES
339
339
  $ emb images delete
340
340
  ```
341
341
 
342
- _See code: [src/commands/images/delete.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/images/delete.ts)_
342
+ _See code: [src/commands/images/delete.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/images/delete.ts)_
343
343
 
344
344
  ## `emb images prune`
345
345
 
@@ -364,7 +364,7 @@ EXAMPLES
364
364
  $ emb images prune
365
365
  ```
366
366
 
367
- _See code: [src/commands/images/prune.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/images/prune.ts)_
367
+ _See code: [src/commands/images/prune.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/images/prune.ts)_
368
368
 
369
369
  ## `emb images push`
370
370
 
@@ -393,7 +393,7 @@ EXAMPLES
393
393
  $ emb images push --registry my.registry.io --retag newtag
394
394
  ```
395
395
 
396
- _See code: [src/commands/images/push.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/images/push.ts)_
396
+ _See code: [src/commands/images/push.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/images/push.ts)_
397
397
 
398
398
  ## `emb kubernetes logs COMPONENT`
399
399
 
@@ -419,7 +419,7 @@ EXAMPLES
419
419
  $ emb kubernetes logs
420
420
  ```
421
421
 
422
- _See code: [src/commands/kubernetes/logs.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/kubernetes/logs.ts)_
422
+ _See code: [src/commands/kubernetes/logs.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/kubernetes/logs.ts)_
423
423
 
424
424
  ## `emb kubernetes ps`
425
425
 
@@ -442,7 +442,7 @@ EXAMPLES
442
442
  $ emb kubernetes ps
443
443
  ```
444
444
 
445
- _See code: [src/commands/kubernetes/ps.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/kubernetes/ps.ts)_
445
+ _See code: [src/commands/kubernetes/ps.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/kubernetes/ps.ts)_
446
446
 
447
447
  ## `emb kubernetes restart [DEPLOYMENT]`
448
448
 
@@ -467,7 +467,7 @@ EXAMPLES
467
467
  $ emb kubernetes restart
468
468
  ```
469
469
 
470
- _See code: [src/commands/kubernetes/restart.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/kubernetes/restart.ts)_
470
+ _See code: [src/commands/kubernetes/restart.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/kubernetes/restart.ts)_
471
471
 
472
472
  ## `emb kubernetes shell COMPONENT`
473
473
 
@@ -496,7 +496,7 @@ EXAMPLES
496
496
  $ emb kubernetes shell
497
497
  ```
498
498
 
499
- _See code: [src/commands/kubernetes/shell.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/kubernetes/shell.ts)_
499
+ _See code: [src/commands/kubernetes/shell.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/kubernetes/shell.ts)_
500
500
 
501
501
  ## `emb logs [SERVICE]`
502
502
 
@@ -527,7 +527,7 @@ EXAMPLES
527
527
  $ emb logs --no-follow backend
528
528
  ```
529
529
 
530
- _See code: [src/commands/logs/index.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/logs/index.ts)_
530
+ _See code: [src/commands/logs/index.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/logs/index.ts)_
531
531
 
532
532
  ## `emb logs archive [SERVICE]`
533
533
 
@@ -563,7 +563,7 @@ EXAMPLES
563
563
  $ emb logs archive --tail 1000
564
564
  ```
565
565
 
566
- _See code: [src/commands/logs/archive.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/logs/archive.ts)_
566
+ _See code: [src/commands/logs/archive.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/logs/archive.ts)_
567
567
 
568
568
  ## `emb ps`
569
569
 
@@ -586,7 +586,7 @@ EXAMPLES
586
586
  $ emb ps
587
587
  ```
588
588
 
589
- _See code: [src/commands/ps.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/ps.ts)_
589
+ _See code: [src/commands/ps.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/ps.ts)_
590
590
 
591
591
  ## `emb resources`
592
592
 
@@ -614,7 +614,7 @@ EXAMPLES
614
614
  $ emb resources --publishable
615
615
  ```
616
616
 
617
- _See code: [src/commands/resources/index.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/resources/index.ts)_
617
+ _See code: [src/commands/resources/index.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/resources/index.ts)_
618
618
 
619
619
  ## `emb resources build [COMPONENT]`
620
620
 
@@ -648,7 +648,7 @@ EXAMPLES
648
648
  $ emb resources build build --publishable --flavor production
649
649
  ```
650
650
 
651
- _See code: [src/commands/resources/build.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/resources/build.ts)_
651
+ _See code: [src/commands/resources/build.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/resources/build.ts)_
652
652
 
653
653
  ## `emb resources publish [RESOURCES]`
654
654
 
@@ -679,7 +679,7 @@ EXAMPLES
679
679
  $ emb resources publish api:image --flavor production
680
680
  ```
681
681
 
682
- _See code: [src/commands/resources/publish.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/resources/publish.ts)_
682
+ _See code: [src/commands/resources/publish.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/resources/publish.ts)_
683
683
 
684
684
  ## `emb restart [SERVICE]`
685
685
 
@@ -707,7 +707,7 @@ EXAMPLES
707
707
  $ emb restart
708
708
  ```
709
709
 
710
- _See code: [src/commands/restart.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/restart.ts)_
710
+ _See code: [src/commands/restart.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/restart.ts)_
711
711
 
712
712
  ## `emb run TASK`
713
713
 
@@ -765,7 +765,7 @@ EXAMPLES
765
765
  $ emb secrets --json
766
766
  ```
767
767
 
768
- _See code: [src/commands/secrets/index.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/secrets/index.ts)_
768
+ _See code: [src/commands/secrets/index.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/secrets/index.ts)_
769
769
 
770
770
  ## `emb secrets providers`
771
771
 
@@ -790,7 +790,7 @@ EXAMPLES
790
790
  $ emb secrets providers
791
791
  ```
792
792
 
793
- _See code: [src/commands/secrets/providers.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/secrets/providers.ts)_
793
+ _See code: [src/commands/secrets/providers.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/secrets/providers.ts)_
794
794
 
795
795
  ## `emb secrets validate`
796
796
 
@@ -820,7 +820,7 @@ EXAMPLES
820
820
  $ emb secrets validate --json
821
821
  ```
822
822
 
823
- _See code: [src/commands/secrets/validate.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/secrets/validate.ts)_
823
+ _See code: [src/commands/secrets/validate.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/secrets/validate.ts)_
824
824
 
825
825
  ## `emb shell SERVICE`
826
826
 
@@ -873,7 +873,7 @@ EXAMPLES
873
873
  $ emb start
874
874
  ```
875
875
 
876
- _See code: [src/commands/start.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/start.ts)_
876
+ _See code: [src/commands/start.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/start.ts)_
877
877
 
878
878
  ## `emb stop [SERVICE]`
879
879
 
@@ -901,7 +901,7 @@ EXAMPLES
901
901
  $ emb stop
902
902
  ```
903
903
 
904
- _See code: [src/commands/stop.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/stop.ts)_
904
+ _See code: [src/commands/stop.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/stop.ts)_
905
905
 
906
906
  ## `emb tasks`
907
907
 
@@ -925,7 +925,7 @@ EXAMPLES
925
925
  $ emb tasks
926
926
  ```
927
927
 
928
- _See code: [src/commands/tasks/index.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/tasks/index.ts)_
928
+ _See code: [src/commands/tasks/index.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/tasks/index.ts)_
929
929
 
930
930
  ## `emb tasks run TASK`
931
931
 
@@ -958,7 +958,7 @@ EXAMPLES
958
958
  $ emb tasks run
959
959
  ```
960
960
 
961
- _See code: [src/commands/tasks/run.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/tasks/run.ts)_
961
+ _See code: [src/commands/tasks/run.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/tasks/run.ts)_
962
962
 
963
963
  ## `emb up [SERVICE]`
964
964
 
@@ -987,7 +987,7 @@ EXAMPLES
987
987
  $ emb up
988
988
  ```
989
989
 
990
- _See code: [src/commands/up.ts](https://github.com/enspirit/emb/blob/v0.25.1/src/commands/up.ts)_
990
+ _See code: [src/commands/up.ts](https://github.com/enspirit/emb/blob/v0.25.3/src/commands/up.ts)_
991
991
 
992
992
  ## `emb update [CHANNEL]`
993
993
 
@@ -68,9 +68,18 @@ export class DockerComposeClient {
68
68
  if (this.services && !force) {
69
69
  return;
70
70
  }
71
- const { stdout: servicesOutput } = await execa({
72
- cwd: this.monorepo.rootDir,
73
- }) `docker compose config --services`;
71
+ let servicesOutput;
72
+ try {
73
+ const result = await execa({
74
+ cwd: this.monorepo.rootDir,
75
+ }) `docker compose config --services`;
76
+ servicesOutput = result.stdout;
77
+ }
78
+ catch {
79
+ // No docker-compose config available (no compose file, docker not installed, etc.)
80
+ this.services = new Map();
81
+ return;
82
+ }
74
83
  const services = servicesOutput
75
84
  .split('\n')
76
85
  .map((l) => l.trim())
@@ -931,19 +931,21 @@
931
931
  "push.js"
932
932
  ]
933
933
  },
934
- "resources:build": {
934
+ "logs:archive": {
935
935
  "aliases": [],
936
936
  "args": {
937
- "component": {
938
- "description": "List of resources to build (defaults to all)",
939
- "name": "component",
937
+ "service": {
938
+ "description": "The service(s) to archive logs for (all if omitted)",
939
+ "name": "service",
940
940
  "required": false
941
941
  }
942
942
  },
943
- "description": "Build the resources of the monorepo",
943
+ "description": "Archive docker compose logs to files (one file per service).",
944
944
  "examples": [
945
- "<%= config.bin %> <%= command.id %> build --flavor development",
946
- "<%= config.bin %> <%= command.id %> build --publishable --flavor production"
945
+ "<%= config.bin %> <%= command.id %>",
946
+ "<%= config.bin %> <%= command.id %> backend frontend",
947
+ "<%= config.bin %> <%= command.id %> --timestamps",
948
+ "<%= config.bin %> <%= command.id %> --tail 1000"
947
949
  ],
948
950
  "flags": {
949
951
  "json": {
@@ -967,108 +969,36 @@
967
969
  "multiple": false,
968
970
  "type": "option"
969
971
  },
970
- "flavor": {
971
- "description": "Specify the flavor to use.",
972
- "name": "flavor",
973
- "required": false,
974
- "hasDynamicHelp": false,
975
- "multiple": false,
976
- "type": "option"
977
- },
978
- "dry-run": {
979
- "description": "Do not build the resources but only produce build meta information",
980
- "name": "dry-run",
981
- "required": false,
982
- "allowNo": false,
983
- "type": "boolean"
984
- },
985
- "force": {
986
- "char": "f",
987
- "description": "Bypass the cache and force the build",
988
- "name": "force",
989
- "required": false,
990
- "allowNo": false,
991
- "type": "boolean"
992
- },
993
- "publishable": {
994
- "description": "Only build resources that are publishable (publish: true) and their dependencies",
995
- "name": "publishable",
996
- "required": false,
997
- "allowNo": false,
998
- "type": "boolean"
999
- }
1000
- },
1001
- "hasDynamicHelp": false,
1002
- "hiddenAliases": [],
1003
- "id": "resources:build",
1004
- "pluginAlias": "@enspirit/emb",
1005
- "pluginName": "@enspirit/emb",
1006
- "pluginType": "core",
1007
- "strict": false,
1008
- "enableJsonFlag": true,
1009
- "isESM": true,
1010
- "relativePath": [
1011
- "dist",
1012
- "src",
1013
- "cli",
1014
- "commands",
1015
- "resources",
1016
- "build.js"
1017
- ]
1018
- },
1019
- "resources": {
1020
- "aliases": [],
1021
- "args": {},
1022
- "description": "List resources.",
1023
- "examples": [
1024
- "<%= config.bin %> <%= command.id %>",
1025
- "<%= config.bin %> <%= command.id %> --publishable"
1026
- ],
1027
- "flags": {
1028
- "json": {
1029
- "description": "Format output as json.",
1030
- "helpGroup": "GLOBAL",
1031
- "name": "json",
972
+ "timestamps": {
973
+ "char": "t",
974
+ "description": "Include timestamps in logs",
975
+ "name": "timestamps",
1032
976
  "allowNo": false,
1033
977
  "type": "boolean"
1034
978
  },
1035
- "verbose": {
1036
- "name": "verbose",
1037
- "allowNo": true,
1038
- "type": "boolean"
1039
- },
1040
- "root": {
1041
- "char": "C",
1042
- "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
1043
- "name": "root",
1044
- "required": false,
979
+ "tail": {
980
+ "description": "Number of lines to show from the end of the logs",
981
+ "name": "tail",
1045
982
  "hasDynamicHelp": false,
1046
983
  "multiple": false,
1047
984
  "type": "option"
1048
985
  },
1049
- "flavor": {
1050
- "description": "Specify the flavor to use.",
1051
- "name": "flavor",
1052
- "required": false,
986
+ "output": {
987
+ "char": "o",
988
+ "description": "Output directory for log files (defaults to .emb/<flavor>/logs/docker/compose)",
989
+ "name": "output",
1053
990
  "hasDynamicHelp": false,
1054
991
  "multiple": false,
1055
992
  "type": "option"
1056
- },
1057
- "publishable": {
1058
- "description": "Only show resources that are publishable (publish: true)",
1059
- "name": "publishable",
1060
- "required": false,
1061
- "allowNo": false,
1062
- "type": "boolean"
1063
993
  }
1064
994
  },
1065
995
  "hasDynamicHelp": false,
1066
996
  "hiddenAliases": [],
1067
- "id": "resources",
997
+ "id": "logs:archive",
1068
998
  "pluginAlias": "@enspirit/emb",
1069
999
  "pluginName": "@enspirit/emb",
1070
1000
  "pluginType": "core",
1071
- "strict": true,
1001
+ "strict": false,
1072
1002
  "enableJsonFlag": true,
1073
1003
  "isESM": true,
1074
1004
  "relativePath": [
@@ -1076,32 +1006,27 @@
1076
1006
  "src",
1077
1007
  "cli",
1078
1008
  "commands",
1079
- "resources",
1080
- "index.js"
1009
+ "logs",
1010
+ "archive.js"
1081
1011
  ]
1082
1012
  },
1083
- "resources:publish": {
1013
+ "logs": {
1084
1014
  "aliases": [],
1085
1015
  "args": {
1086
- "resources": {
1087
- "description": "List of resources to publish (defaults to all publishable)",
1088
- "name": "resources",
1016
+ "service": {
1017
+ "description": "The service(s) you want to see the logs of (all if omitted)",
1018
+ "name": "service",
1089
1019
  "required": false
1090
1020
  }
1091
1021
  },
1092
- "description": "Publish resources to their registries",
1022
+ "description": "Get service logs.",
1093
1023
  "examples": [
1094
- "<%= config.bin %> <%= command.id %> --flavor production",
1095
- "<%= config.bin %> <%= command.id %> api:image --flavor production"
1024
+ "<%= config.bin %> <%= command.id %>",
1025
+ "<%= config.bin %> <%= command.id %> backend",
1026
+ "<%= config.bin %> <%= command.id %> backend frontend",
1027
+ "<%= config.bin %> <%= command.id %> --no-follow backend"
1096
1028
  ],
1097
1029
  "flags": {
1098
- "json": {
1099
- "description": "Format output as json.",
1100
- "helpGroup": "GLOBAL",
1101
- "name": "json",
1102
- "allowNo": false,
1103
- "type": "boolean"
1104
- },
1105
1030
  "verbose": {
1106
1031
  "name": "verbose",
1107
1032
  "allowNo": true,
@@ -1116,38 +1041,30 @@
1116
1041
  "multiple": false,
1117
1042
  "type": "option"
1118
1043
  },
1119
- "flavor": {
1120
- "description": "Specify the flavor to use.",
1121
- "name": "flavor",
1122
- "required": false,
1123
- "hasDynamicHelp": false,
1124
- "multiple": false,
1125
- "type": "option"
1126
- },
1127
- "dry-run": {
1128
- "description": "Do not publish, just show what would be published",
1129
- "name": "dry-run",
1130
- "required": false,
1131
- "allowNo": false,
1044
+ "follow": {
1045
+ "char": "f",
1046
+ "description": "Follow log output",
1047
+ "name": "follow",
1048
+ "allowNo": true,
1132
1049
  "type": "boolean"
1133
1050
  }
1134
1051
  },
1135
1052
  "hasDynamicHelp": false,
1136
1053
  "hiddenAliases": [],
1137
- "id": "resources:publish",
1054
+ "id": "logs",
1138
1055
  "pluginAlias": "@enspirit/emb",
1139
1056
  "pluginName": "@enspirit/emb",
1140
1057
  "pluginType": "core",
1141
1058
  "strict": false,
1142
- "enableJsonFlag": true,
1059
+ "enableJsonFlag": false,
1143
1060
  "isESM": true,
1144
1061
  "relativePath": [
1145
1062
  "dist",
1146
1063
  "src",
1147
1064
  "cli",
1148
1065
  "commands",
1149
- "resources",
1150
- "publish.js"
1066
+ "logs",
1067
+ "index.js"
1151
1068
  ]
1152
1069
  },
1153
1070
  "kubernetes:logs": {
@@ -1579,21 +1496,19 @@
1579
1496
  "validate.js"
1580
1497
  ]
1581
1498
  },
1582
- "logs:archive": {
1499
+ "resources:build": {
1583
1500
  "aliases": [],
1584
1501
  "args": {
1585
- "service": {
1586
- "description": "The service(s) to archive logs for (all if omitted)",
1587
- "name": "service",
1502
+ "component": {
1503
+ "description": "List of resources to build (defaults to all)",
1504
+ "name": "component",
1588
1505
  "required": false
1589
1506
  }
1590
1507
  },
1591
- "description": "Archive docker compose logs to files (one file per service).",
1508
+ "description": "Build the resources of the monorepo",
1592
1509
  "examples": [
1593
- "<%= config.bin %> <%= command.id %>",
1594
- "<%= config.bin %> <%= command.id %> backend frontend",
1595
- "<%= config.bin %> <%= command.id %> --timestamps",
1596
- "<%= config.bin %> <%= command.id %> --tail 1000"
1510
+ "<%= config.bin %> <%= command.id %> build --flavor development",
1511
+ "<%= config.bin %> <%= command.id %> build --publishable --flavor production"
1597
1512
  ],
1598
1513
  "flags": {
1599
1514
  "json": {
@@ -1617,36 +1532,108 @@
1617
1532
  "multiple": false,
1618
1533
  "type": "option"
1619
1534
  },
1620
- "timestamps": {
1621
- "char": "t",
1622
- "description": "Include timestamps in logs",
1623
- "name": "timestamps",
1535
+ "flavor": {
1536
+ "description": "Specify the flavor to use.",
1537
+ "name": "flavor",
1538
+ "required": false,
1539
+ "hasDynamicHelp": false,
1540
+ "multiple": false,
1541
+ "type": "option"
1542
+ },
1543
+ "dry-run": {
1544
+ "description": "Do not build the resources but only produce build meta information",
1545
+ "name": "dry-run",
1546
+ "required": false,
1624
1547
  "allowNo": false,
1625
1548
  "type": "boolean"
1626
1549
  },
1627
- "tail": {
1628
- "description": "Number of lines to show from the end of the logs",
1629
- "name": "tail",
1550
+ "force": {
1551
+ "char": "f",
1552
+ "description": "Bypass the cache and force the build",
1553
+ "name": "force",
1554
+ "required": false,
1555
+ "allowNo": false,
1556
+ "type": "boolean"
1557
+ },
1558
+ "publishable": {
1559
+ "description": "Only build resources that are publishable (publish: true) and their dependencies",
1560
+ "name": "publishable",
1561
+ "required": false,
1562
+ "allowNo": false,
1563
+ "type": "boolean"
1564
+ }
1565
+ },
1566
+ "hasDynamicHelp": false,
1567
+ "hiddenAliases": [],
1568
+ "id": "resources:build",
1569
+ "pluginAlias": "@enspirit/emb",
1570
+ "pluginName": "@enspirit/emb",
1571
+ "pluginType": "core",
1572
+ "strict": false,
1573
+ "enableJsonFlag": true,
1574
+ "isESM": true,
1575
+ "relativePath": [
1576
+ "dist",
1577
+ "src",
1578
+ "cli",
1579
+ "commands",
1580
+ "resources",
1581
+ "build.js"
1582
+ ]
1583
+ },
1584
+ "resources": {
1585
+ "aliases": [],
1586
+ "args": {},
1587
+ "description": "List resources.",
1588
+ "examples": [
1589
+ "<%= config.bin %> <%= command.id %>",
1590
+ "<%= config.bin %> <%= command.id %> --publishable"
1591
+ ],
1592
+ "flags": {
1593
+ "json": {
1594
+ "description": "Format output as json.",
1595
+ "helpGroup": "GLOBAL",
1596
+ "name": "json",
1597
+ "allowNo": false,
1598
+ "type": "boolean"
1599
+ },
1600
+ "verbose": {
1601
+ "name": "verbose",
1602
+ "allowNo": true,
1603
+ "type": "boolean"
1604
+ },
1605
+ "root": {
1606
+ "char": "C",
1607
+ "description": "Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.",
1608
+ "name": "root",
1609
+ "required": false,
1630
1610
  "hasDynamicHelp": false,
1631
1611
  "multiple": false,
1632
1612
  "type": "option"
1633
1613
  },
1634
- "output": {
1635
- "char": "o",
1636
- "description": "Output directory for log files (defaults to .emb/<flavor>/logs/docker/compose)",
1637
- "name": "output",
1614
+ "flavor": {
1615
+ "description": "Specify the flavor to use.",
1616
+ "name": "flavor",
1617
+ "required": false,
1638
1618
  "hasDynamicHelp": false,
1639
1619
  "multiple": false,
1640
1620
  "type": "option"
1621
+ },
1622
+ "publishable": {
1623
+ "description": "Only show resources that are publishable (publish: true)",
1624
+ "name": "publishable",
1625
+ "required": false,
1626
+ "allowNo": false,
1627
+ "type": "boolean"
1641
1628
  }
1642
1629
  },
1643
1630
  "hasDynamicHelp": false,
1644
1631
  "hiddenAliases": [],
1645
- "id": "logs:archive",
1632
+ "id": "resources",
1646
1633
  "pluginAlias": "@enspirit/emb",
1647
1634
  "pluginName": "@enspirit/emb",
1648
1635
  "pluginType": "core",
1649
- "strict": false,
1636
+ "strict": true,
1650
1637
  "enableJsonFlag": true,
1651
1638
  "isESM": true,
1652
1639
  "relativePath": [
@@ -1654,27 +1641,32 @@
1654
1641
  "src",
1655
1642
  "cli",
1656
1643
  "commands",
1657
- "logs",
1658
- "archive.js"
1644
+ "resources",
1645
+ "index.js"
1659
1646
  ]
1660
1647
  },
1661
- "logs": {
1648
+ "resources:publish": {
1662
1649
  "aliases": [],
1663
1650
  "args": {
1664
- "service": {
1665
- "description": "The service(s) you want to see the logs of (all if omitted)",
1666
- "name": "service",
1651
+ "resources": {
1652
+ "description": "List of resources to publish (defaults to all publishable)",
1653
+ "name": "resources",
1667
1654
  "required": false
1668
1655
  }
1669
1656
  },
1670
- "description": "Get service logs.",
1657
+ "description": "Publish resources to their registries",
1671
1658
  "examples": [
1672
- "<%= config.bin %> <%= command.id %>",
1673
- "<%= config.bin %> <%= command.id %> backend",
1674
- "<%= config.bin %> <%= command.id %> backend frontend",
1675
- "<%= config.bin %> <%= command.id %> --no-follow backend"
1659
+ "<%= config.bin %> <%= command.id %> --flavor production",
1660
+ "<%= config.bin %> <%= command.id %> api:image --flavor production"
1676
1661
  ],
1677
1662
  "flags": {
1663
+ "json": {
1664
+ "description": "Format output as json.",
1665
+ "helpGroup": "GLOBAL",
1666
+ "name": "json",
1667
+ "allowNo": false,
1668
+ "type": "boolean"
1669
+ },
1678
1670
  "verbose": {
1679
1671
  "name": "verbose",
1680
1672
  "allowNo": true,
@@ -1689,30 +1681,38 @@
1689
1681
  "multiple": false,
1690
1682
  "type": "option"
1691
1683
  },
1692
- "follow": {
1693
- "char": "f",
1694
- "description": "Follow log output",
1695
- "name": "follow",
1696
- "allowNo": true,
1684
+ "flavor": {
1685
+ "description": "Specify the flavor to use.",
1686
+ "name": "flavor",
1687
+ "required": false,
1688
+ "hasDynamicHelp": false,
1689
+ "multiple": false,
1690
+ "type": "option"
1691
+ },
1692
+ "dry-run": {
1693
+ "description": "Do not publish, just show what would be published",
1694
+ "name": "dry-run",
1695
+ "required": false,
1696
+ "allowNo": false,
1697
1697
  "type": "boolean"
1698
1698
  }
1699
1699
  },
1700
1700
  "hasDynamicHelp": false,
1701
1701
  "hiddenAliases": [],
1702
- "id": "logs",
1702
+ "id": "resources:publish",
1703
1703
  "pluginAlias": "@enspirit/emb",
1704
1704
  "pluginName": "@enspirit/emb",
1705
1705
  "pluginType": "core",
1706
1706
  "strict": false,
1707
- "enableJsonFlag": false,
1707
+ "enableJsonFlag": true,
1708
1708
  "isESM": true,
1709
1709
  "relativePath": [
1710
1710
  "dist",
1711
1711
  "src",
1712
1712
  "cli",
1713
1713
  "commands",
1714
- "logs",
1715
- "index.js"
1714
+ "resources",
1715
+ "publish.js"
1716
1716
  ]
1717
1717
  },
1718
1718
  "tasks": {
@@ -1840,5 +1840,5 @@
1840
1840
  ]
1841
1841
  }
1842
1842
  },
1843
- "version": "0.25.1"
1843
+ "version": "0.25.3"
1844
1844
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@enspirit/emb",
3
3
  "type": "module",
4
- "version": "0.25.1",
4
+ "version": "0.25.3",
5
5
  "keywords": [
6
6
  "monorepo",
7
7
  "docker",