create-blitzpack 0.1.13 → 0.1.14
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 +14 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -170,6 +170,11 @@ var OPTIONAL_FEATURES = [
|
|
|
170
170
|
key: "uploads",
|
|
171
171
|
name: "File Uploads",
|
|
172
172
|
description: "S3 storage, upload routes, file components"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
key: "deployment",
|
|
176
|
+
name: "Deployment",
|
|
177
|
+
description: "Dockerfile, CI/CD workflows, production configs"
|
|
173
178
|
}
|
|
174
179
|
];
|
|
175
180
|
var FEATURE_EXCLUSIONS = {
|
|
@@ -212,7 +217,8 @@ var FEATURE_EXCLUSIONS = {
|
|
|
212
217
|
"apps/web/src/hooks/api/use-uploads.ts",
|
|
213
218
|
"packages/ui/src/file-upload-input.tsx",
|
|
214
219
|
"packages/types/src/upload.ts"
|
|
215
|
-
]
|
|
220
|
+
],
|
|
221
|
+
deployment: ["Dockerfile", "Dockerfile.web", "docker-compose.prod.yml", ".github"]
|
|
216
222
|
};
|
|
217
223
|
|
|
218
224
|
// src/utils.ts
|
|
@@ -420,7 +426,8 @@ async function promptFeatureSelection() {
|
|
|
420
426
|
return {
|
|
421
427
|
testing: true,
|
|
422
428
|
admin: true,
|
|
423
|
-
uploads: true
|
|
429
|
+
uploads: true,
|
|
430
|
+
deployment: true
|
|
424
431
|
};
|
|
425
432
|
}
|
|
426
433
|
const featureChoices = OPTIONAL_FEATURES.map((feature) => ({
|
|
@@ -451,7 +458,8 @@ async function promptFeatureSelection() {
|
|
|
451
458
|
return {
|
|
452
459
|
testing: selected.includes("testing"),
|
|
453
460
|
admin: selected.includes("admin"),
|
|
454
|
-
uploads: selected.includes("uploads")
|
|
461
|
+
uploads: selected.includes("uploads"),
|
|
462
|
+
deployment: selected.includes("deployment")
|
|
455
463
|
};
|
|
456
464
|
}
|
|
457
465
|
async function promptAutomaticSetup() {
|
|
@@ -483,13 +491,7 @@ import fs from "fs-extra";
|
|
|
483
491
|
import { downloadTemplate } from "giget";
|
|
484
492
|
import path2 from "path";
|
|
485
493
|
var GITHUB_REPO = "github:CarboxyDev/blitzpack";
|
|
486
|
-
var POST_DOWNLOAD_EXCLUDES = [
|
|
487
|
-
"create-blitzpack",
|
|
488
|
-
".github",
|
|
489
|
-
"apps/marketing",
|
|
490
|
-
"Dockerfile",
|
|
491
|
-
"docker-compose.prod.yml"
|
|
492
|
-
];
|
|
494
|
+
var POST_DOWNLOAD_EXCLUDES = ["create-blitzpack", "apps/marketing"];
|
|
493
495
|
function getFeatureExclusions(features) {
|
|
494
496
|
const exclusions = [];
|
|
495
497
|
for (const [key, enabled] of Object.entries(features)) {
|
|
@@ -767,8 +769,8 @@ async function transformForNoTesting(targetDir) {
|
|
|
767
769
|
|
|
768
770
|
// src/commands/create.ts
|
|
769
771
|
var ENV_FILES = [
|
|
770
|
-
{ from: "apps/web/.env.
|
|
771
|
-
{ from: "apps/api/.env.
|
|
772
|
+
{ from: "apps/web/.env.example", to: "apps/web/.env.local" },
|
|
773
|
+
{ from: "apps/api/.env.example", to: "apps/api/.env.local" }
|
|
772
774
|
];
|
|
773
775
|
async function copyEnvFiles(targetDir) {
|
|
774
776
|
for (const { from, to } of ENV_FILES) {
|