create-kofi-stack 2.1.21 → 2.1.23
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 +21 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -241,11 +241,27 @@ async function runPrompts(projectNameArg, options) {
|
|
|
241
241
|
{ value: "none", label: "None", hint: "Skip file storage" }
|
|
242
242
|
];
|
|
243
243
|
const uploads = await p.select({
|
|
244
|
-
message: "
|
|
244
|
+
message: "Web app file storage?",
|
|
245
245
|
options: uploadsOptions,
|
|
246
246
|
initialValue: "convex-fs"
|
|
247
247
|
});
|
|
248
248
|
if (p.isCancel(uploads)) throw new Error("cancelled");
|
|
249
|
+
let payloadStorage = void 0;
|
|
250
|
+
if (marketingSite === "payload") {
|
|
251
|
+
const payloadStorageOptions = [
|
|
252
|
+
{ value: "local", label: "Local Filesystem", hint: "Store files on server (Recommended for dev)" },
|
|
253
|
+
{ value: "s3", label: "AWS S3", hint: "S3-compatible storage" },
|
|
254
|
+
{ value: "r2", label: "Cloudflare R2", hint: "S3-compatible edge storage" },
|
|
255
|
+
{ value: "vercel-blob", label: "Vercel Blob", hint: "Vercel storage" },
|
|
256
|
+
{ value: "gcs", label: "Google Cloud Storage", hint: "GCS bucket storage" }
|
|
257
|
+
];
|
|
258
|
+
payloadStorage = await p.select({
|
|
259
|
+
message: "Payload CMS file storage?",
|
|
260
|
+
options: payloadStorageOptions,
|
|
261
|
+
initialValue: "local"
|
|
262
|
+
});
|
|
263
|
+
if (p.isCancel(payloadStorage)) throw new Error("cancelled");
|
|
264
|
+
}
|
|
249
265
|
const paymentsOptions = [
|
|
250
266
|
{ value: "none", label: "None", hint: "Skip payments" },
|
|
251
267
|
{ value: "stripe", label: "Stripe", hint: "Full payment platform" },
|
|
@@ -285,7 +301,8 @@ async function runPrompts(projectNameArg, options) {
|
|
|
285
301
|
"",
|
|
286
302
|
pc.dim("\u2500\u2500\u2500 Integrations \u2500\u2500\u2500"),
|
|
287
303
|
`${pc.cyan("Analytics:")} ${analytics}`,
|
|
288
|
-
`${pc.cyan("Storage:")} ${uploads}`,
|
|
304
|
+
`${pc.cyan("Web Storage:")} ${uploads}`,
|
|
305
|
+
payloadStorage ? `${pc.cyan("Payload Storage:")} ${payloadStorage}` : null,
|
|
289
306
|
`${pc.cyan("Payments:")} ${payments}`,
|
|
290
307
|
addonsSelected.length > 0 ? `${pc.cyan("Addons:")} ${addonsSelected.join(", ")}` : null
|
|
291
308
|
].filter(Boolean).join("\n"),
|
|
@@ -319,7 +336,8 @@ async function runPrompts(projectNameArg, options) {
|
|
|
319
336
|
integrations: {
|
|
320
337
|
analytics,
|
|
321
338
|
uploads,
|
|
322
|
-
payments
|
|
339
|
+
payments,
|
|
340
|
+
payloadStorage
|
|
323
341
|
},
|
|
324
342
|
addons: addonsSelected,
|
|
325
343
|
packageManager: "pnpm"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-kofi-stack",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.23",
|
|
4
4
|
"description": "Scaffold opinionated full-stack projects with Next.js, Convex, Better-Auth, and more",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"typecheck": "tsc --noEmit"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"kofi-stack-template-generator": "^2.1.
|
|
20
|
-
"kofi-stack-types": "^2.
|
|
19
|
+
"kofi-stack-template-generator": "^2.1.21",
|
|
20
|
+
"kofi-stack-types": "^2.2.0",
|
|
21
21
|
"@clack/prompts": "^0.7.0",
|
|
22
22
|
"commander": "^12.0.0",
|
|
23
23
|
"execa": "^8.0.0",
|