ui-syncup 0.3.11-beta → 0.3.11-beta-2
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.js +15 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var require_package = __commonJS({
|
|
|
31
31
|
"package.json"(exports2, module2) {
|
|
32
32
|
module2.exports = {
|
|
33
33
|
name: "ui-syncup",
|
|
34
|
-
version: "0.3.11-beta",
|
|
34
|
+
version: "0.3.11-beta-2",
|
|
35
35
|
description: "Self-host UI SyncUp with a single command",
|
|
36
36
|
bin: {
|
|
37
37
|
"ui-syncup": "./dist/index.js"
|
|
@@ -283,8 +283,9 @@ async function initCommand() {
|
|
|
283
283
|
const emailChoice = await (0, import_prompts.select)({
|
|
284
284
|
message: "Email provider:",
|
|
285
285
|
choices: [
|
|
286
|
-
{ name: "Resend", value: "resend" },
|
|
287
|
-
{ name: "SMTP (
|
|
286
|
+
{ name: "Resend (recommended for production)", value: "resend" },
|
|
287
|
+
{ name: "SMTP \u2014 custom server (SendGrid, Postmark, etc.)", value: "smtp" },
|
|
288
|
+
{ name: "Mailpit \u2014 bundled SMTP catcher (dev/test only)", value: "mailpit" },
|
|
288
289
|
{ name: "Skip for now", value: "skip" }
|
|
289
290
|
]
|
|
290
291
|
});
|
|
@@ -298,6 +299,14 @@ async function initCommand() {
|
|
|
298
299
|
envVars["SMTP_PASSWORD"] = await (0, import_prompts.input)({ message: "SMTP password:" });
|
|
299
300
|
envVars["SMTP_FROM_EMAIL"] = await (0, import_prompts.input)({ message: "From email:" });
|
|
300
301
|
envVars["SMTP_SECURE"] = await (0, import_prompts.input)({ message: "TLS? (true/false):", default: "true" });
|
|
302
|
+
} else if (emailChoice === "mailpit") {
|
|
303
|
+
profiles.push("mail");
|
|
304
|
+
envVars["SMTP_HOST"] = "mailpit";
|
|
305
|
+
envVars["SMTP_PORT"] = "1025";
|
|
306
|
+
envVars["SMTP_USER"] = "";
|
|
307
|
+
envVars["SMTP_PASSWORD"] = "";
|
|
308
|
+
envVars["SMTP_FROM_EMAIL"] = "noreply@localhost";
|
|
309
|
+
envVars["SMTP_SECURE"] = "false";
|
|
301
310
|
}
|
|
302
311
|
envVars["COMPOSE_PROFILES"] = profiles.join(",");
|
|
303
312
|
ui.step(5, 6, "Writing .env...");
|
|
@@ -311,6 +320,9 @@ async function initCommand() {
|
|
|
311
320
|
}
|
|
312
321
|
ui.success("UI SyncUp is running!");
|
|
313
322
|
ui.info(`Open: ${appUrl}`);
|
|
323
|
+
if (profiles.includes("mail")) {
|
|
324
|
+
ui.info("Mailpit inbox: http://localhost:8025");
|
|
325
|
+
}
|
|
314
326
|
if (profiles.length > 0) {
|
|
315
327
|
ui.info(`Active profiles: ${profiles.join(", ")}`);
|
|
316
328
|
}
|