@geekmidas/cli 0.20.0 → 0.22.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 +18 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +18 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -6
- 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.22.0",
|
|
4
4
|
"description": "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -46,7 +46,12 @@
|
|
|
46
46
|
"fast-glob": "^3.3.2",
|
|
47
47
|
"lodash.kebabcase": "^4.1.1",
|
|
48
48
|
"openapi-typescript": "^7.4.2",
|
|
49
|
-
"prompts": "~2.4.2"
|
|
49
|
+
"prompts": "~2.4.2",
|
|
50
|
+
"@geekmidas/constructs": "~0.6.0",
|
|
51
|
+
"@geekmidas/envkit": "~0.4.0",
|
|
52
|
+
"@geekmidas/logger": "~0.4.0",
|
|
53
|
+
"@geekmidas/errors": "~0.1.0",
|
|
54
|
+
"@geekmidas/schema": "~0.1.0"
|
|
50
55
|
},
|
|
51
56
|
"devDependencies": {
|
|
52
57
|
"@types/lodash.kebabcase": "^4.1.9",
|
|
@@ -58,10 +63,6 @@
|
|
|
58
63
|
"@geekmidas/testkit": "0.6.0"
|
|
59
64
|
},
|
|
60
65
|
"peerDependencies": {
|
|
61
|
-
"@geekmidas/envkit": "~0.4.0",
|
|
62
|
-
"@geekmidas/logger": "~0.4.0",
|
|
63
|
-
"@geekmidas/constructs": "~0.6.0",
|
|
64
|
-
"@geekmidas/schema": "~0.1.0",
|
|
65
66
|
"@geekmidas/telescope": "~0.4.0"
|
|
66
67
|
},
|
|
67
68
|
"peerDependenciesMeta": {
|
|
@@ -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
|
|