create-kofi-stack 2.1.35 → 2.1.36
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 +30 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47,7 +47,8 @@ async function runPrompts(projectNameArg, options) {
|
|
|
47
47
|
addons: [
|
|
48
48
|
...options.rateLimiting ? ["rate-limiting"] : [],
|
|
49
49
|
...options.monitoring ? ["monitoring"] : []
|
|
50
|
-
]
|
|
50
|
+
],
|
|
51
|
+
optionalApps: []
|
|
51
52
|
};
|
|
52
53
|
}
|
|
53
54
|
const name = projectNameArg ? projectName : await p.text({
|
|
@@ -97,6 +98,32 @@ async function runPrompts(projectNameArg, options) {
|
|
|
97
98
|
});
|
|
98
99
|
if (p.isCancel(marketingSite)) throw new Error("cancelled");
|
|
99
100
|
}
|
|
101
|
+
let optionalApps = [];
|
|
102
|
+
if (structure === "monorepo") {
|
|
103
|
+
const optionalAppsOptions = [
|
|
104
|
+
{
|
|
105
|
+
value: "design-system",
|
|
106
|
+
label: "Design System",
|
|
107
|
+
hint: "Color palette, typography, components showcase (port 3002)"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
value: "mobile",
|
|
111
|
+
label: "Mobile App",
|
|
112
|
+
hint: "Expo React Native app scaffold"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
value: "admin",
|
|
116
|
+
label: "Admin Dashboard",
|
|
117
|
+
hint: "User management, analytics, settings (port 3003)"
|
|
118
|
+
}
|
|
119
|
+
];
|
|
120
|
+
optionalApps = await p.multiselect({
|
|
121
|
+
message: "Optional apps to include?",
|
|
122
|
+
options: optionalAppsOptions,
|
|
123
|
+
required: false
|
|
124
|
+
});
|
|
125
|
+
if (p.isCancel(optionalApps)) throw new Error("cancelled");
|
|
126
|
+
}
|
|
100
127
|
const componentLibraryOptions = [
|
|
101
128
|
{ value: "base", label: "Base UI", hint: "Recommended - Headless, unstyled primitives" },
|
|
102
129
|
{ value: "radix", label: "Radix UI", hint: "Full-featured accessible primitives" }
|
|
@@ -289,6 +316,7 @@ async function runPrompts(projectNameArg, options) {
|
|
|
289
316
|
`${pc.cyan("Project:")} ${name}`,
|
|
290
317
|
`${pc.cyan("Structure:")} ${structure}`,
|
|
291
318
|
structure === "monorepo" ? `${pc.cyan("Marketing:")} ${marketingSite}` : null,
|
|
319
|
+
optionalApps.length > 0 ? `${pc.cyan("Optional Apps:")} ${optionalApps.join(", ")}` : null,
|
|
292
320
|
"",
|
|
293
321
|
pc.dim("\u2500\u2500\u2500 Design System \u2500\u2500\u2500"),
|
|
294
322
|
`${pc.cyan("Component Library:")} ${componentLibrary}`,
|
|
@@ -340,6 +368,7 @@ async function runPrompts(projectNameArg, options) {
|
|
|
340
368
|
payloadStorage
|
|
341
369
|
},
|
|
342
370
|
addons: addonsSelected,
|
|
371
|
+
optionalApps,
|
|
343
372
|
packageManager: "pnpm"
|
|
344
373
|
};
|
|
345
374
|
}
|