create-fff-app 0.1.11 → 0.1.12
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/package.json +1 -1
- package/template/package.json +2 -2
- package/template/wrangler.toml +13 -15
package/package.json
CHANGED
package/template/package.json
CHANGED
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"build:templates": "fjsx --dir src/client --out dist/client/templates",
|
|
12
12
|
"build:client": "dotnet fable src/client/Client.fsproj --outDir dist/client/fable --noCache && bun build dist/client/fable/App.js --outdir dist/client --entry-naming bundle.js",
|
|
13
13
|
"build:server": "dotnet fable src/server/Server.fsproj --outDir dist/server --noCache",
|
|
14
|
-
"
|
|
15
|
-
"dev": "bun run build:client && concurrently \"bun run dev:templates\" \"bun run dev:client\" \"bun run dev:bundle\" \"wrangler dev\"",
|
|
14
|
+
"dev": "bun run build:assets && bun run build:client && bun run build:server && concurrently \"bun run dev:templates\" \"bun run dev:client\" \"bun run dev:bundle\" \"bun run dev:server\" \"wrangler dev --local\"",
|
|
16
15
|
"dev:templates": "fjsx-watcher --dir src/client --out dist/client/templates",
|
|
17
16
|
"dev:client": "dotnet fable src/client/Client.fsproj --watch --outDir dist/client/fable",
|
|
18
17
|
"dev:bundle": "bun build --watch dist/client/fable/App.js --outdir dist/client --entry-naming bundle.js",
|
|
18
|
+
"dev:server": "dotnet fable src/server/Server.fsproj --watch --outDir dist/server --noCache",
|
|
19
19
|
"deploy": "wrangler deploy",
|
|
20
20
|
"migrate": "bun run migrate.ts",
|
|
21
21
|
"migrate:remote": "bun run migrate.ts --remote",
|
package/template/wrangler.toml
CHANGED
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
name
|
|
2
|
-
main
|
|
1
|
+
name = "fff-stack-app"
|
|
2
|
+
main = "dist/server/Worker.js"
|
|
3
3
|
compatibility_date = "2024-09-23"
|
|
4
4
|
|
|
5
|
-
# Client assets
|
|
5
|
+
# Client assets (CSS, JS, images)
|
|
6
6
|
[assets]
|
|
7
7
|
directory = "./dist/client"
|
|
8
8
|
binding = "ASSETS"
|
|
9
9
|
|
|
10
|
-
#
|
|
11
|
-
[[d1_databases]]
|
|
12
|
-
binding = "DB"
|
|
13
|
-
database_name = "fff-stack-db"
|
|
14
|
-
database_id = "YOUR_D1_DATABASE_ID" # replace after: wrangler d1 create fff-stack-db
|
|
10
|
+
# ── Add bindings below as you need them ───────────────────────────────────────
|
|
15
11
|
|
|
16
|
-
# Cloudflare
|
|
17
|
-
[[
|
|
18
|
-
binding
|
|
19
|
-
|
|
20
|
-
#
|
|
12
|
+
# Cloudflare D1 (SQLite) — uncomment after: wrangler d1 create <name>
|
|
13
|
+
# [[d1_databases]]
|
|
14
|
+
# binding = "DB"
|
|
15
|
+
# database_name = "fff-stack-app-db"
|
|
16
|
+
# database_id = "YOUR_D1_DATABASE_ID"
|
|
21
17
|
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
# Cloudflare R2 (object storage) — uncomment after: wrangler r2 bucket create <name>
|
|
19
|
+
# [[r2_buckets]]
|
|
20
|
+
# binding = "BUCKET"
|
|
21
|
+
# bucket_name = "fff-stack-app-bucket"
|