@geekmidas/cli 0.20.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekmidas/cli",
3
- "version": "0.20.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",
@@ -59,9 +59,9 @@
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@geekmidas/envkit": "~0.4.0",
62
- "@geekmidas/logger": "~0.4.0",
63
- "@geekmidas/constructs": "~0.6.0",
64
62
  "@geekmidas/schema": "~0.1.0",
63
+ "@geekmidas/constructs": "~0.6.0",
64
+ "@geekmidas/logger": "~0.4.0",
65
65
  "@geekmidas/telescope": "~0.4.0"
66
66
  },
67
67
  "peerDependenciesMeta": {
@@ -146,10 +146,22 @@ export function generateDockerFiles(
146
146
  volumes.push(' rabbitmq_data:');
147
147
  }
148
148
 
149
- // Build docker-compose.yml
150
- let dockerCompose = `version: '3.8'
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
- services:
163
+ // Build docker-compose.yml
164
+ let dockerCompose = `services:
153
165
  ${services.join('\n\n')}
154
166
  `;
155
167