create-kide-app 0.0.3 → 0.0.4

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.
Files changed (2) hide show
  1. package/index.js +14 -10
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -57,15 +57,19 @@ async function main() {
57
57
  process.exit(0);
58
58
  }
59
59
 
60
- // 3. Demo content
61
- const seedDemo = await p.confirm({
62
- message: "Seed database with demo content?",
63
- initialValue: false,
64
- });
65
-
66
- if (p.isCancel(seedDemo)) {
67
- p.cancel("Setup cancelled.");
68
- process.exit(0);
60
+ // 3. Demo content (local only — Cloudflare uses remote D1)
61
+ let seedDemo = false;
62
+ if (target === "local") {
63
+ const seed = await p.confirm({
64
+ message: "Seed database with demo content?",
65
+ initialValue: false,
66
+ });
67
+
68
+ if (p.isCancel(seed)) {
69
+ p.cancel("Setup cancelled.");
70
+ process.exit(0);
71
+ }
72
+ seedDemo = seed;
69
73
  }
70
74
 
71
75
  const s = p.spinner();
@@ -223,8 +227,8 @@ async function main() {
223
227
  "",
224
228
  "Set up Cloudflare resources:",
225
229
  ` ${pm.exec} wrangler d1 create ${projectName}-db`,
230
+ " # Copy the database_id to wrangler.toml",
226
231
  ` ${pm.exec} wrangler r2 bucket create ${projectName}-assets`,
227
- " # Add the database_id to wrangler.toml",
228
232
  "",
229
233
  "Push database schema:",
230
234
  ` ${pm.exec} wrangler d1 execute ${projectName}-db --remote --file=src/cms/migrations/0000_init.sql`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-kide-app",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Scaffold a new Kide CMS project",
5
5
  "author": "Matti Hernesniemi",
6
6
  "license": "MIT",