@geekmidas/cli 0.19.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +13 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/dev/index.ts +1 -1
- package/src/init/generators/docker.ts +15 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geekmidas/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"@geekmidas/testkit": "0.6.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
+
"@geekmidas/envkit": "~0.4.0",
|
|
62
|
+
"@geekmidas/schema": "~0.1.0",
|
|
61
63
|
"@geekmidas/constructs": "~0.6.0",
|
|
62
64
|
"@geekmidas/logger": "~0.4.0",
|
|
63
|
-
"@geekmidas/
|
|
64
|
-
"@geekmidas/telescope": "~0.4.0",
|
|
65
|
-
"@geekmidas/schema": "~0.1.0"
|
|
65
|
+
"@geekmidas/telescope": "~0.4.0"
|
|
66
66
|
},
|
|
67
67
|
"peerDependenciesMeta": {
|
|
68
68
|
"@geekmidas/telescope": {
|
package/src/dev/index.ts
CHANGED
|
@@ -760,7 +760,7 @@ export async function startWorkspaceServices(
|
|
|
760
760
|
}
|
|
761
761
|
|
|
762
762
|
// Start services with docker-compose
|
|
763
|
-
execSync(`docker
|
|
763
|
+
execSync(`docker compose up -d ${servicesToStart.join(' ')}`, {
|
|
764
764
|
cwd: workspace.root,
|
|
765
765
|
stdio: 'inherit',
|
|
766
766
|
});
|
|
@@ -146,10 +146,22 @@ export function generateDockerFiles(
|
|
|
146
146
|
volumes.push(' rabbitmq_data:');
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
//
|
|
150
|
-
|
|
149
|
+
// Mailpit for email testing
|
|
150
|
+
if (options.services.mail) {
|
|
151
|
+
services.push(` mailpit:
|
|
152
|
+
image: axllent/mailpit:latest
|
|
153
|
+
container_name: ${options.name}-mailpit
|
|
154
|
+
restart: unless-stopped
|
|
155
|
+
ports:
|
|
156
|
+
- '1025:1025'
|
|
157
|
+
- '8025:8025'
|
|
158
|
+
environment:
|
|
159
|
+
MP_SMTP_AUTH_ACCEPT_ANY: 1
|
|
160
|
+
MP_SMTP_AUTH_ALLOW_INSECURE: 1`);
|
|
161
|
+
}
|
|
151
162
|
|
|
152
|
-
|
|
163
|
+
// Build docker-compose.yml
|
|
164
|
+
let dockerCompose = `services:
|
|
153
165
|
${services.join('\n\n')}
|
|
154
166
|
`;
|
|
155
167
|
|