create-fff-app 0.1.8 → 0.1.10
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/src/index.ts +3 -0
- package/template/package.json +3 -2
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -130,6 +130,9 @@ ${cdStep}
|
|
|
130
130
|
${dim('# Install JS dependencies')}
|
|
131
131
|
${cyan('bun install')}
|
|
132
132
|
|
|
133
|
+
${dim('# Install Fable (F# → JS compiler)')}
|
|
134
|
+
${cyan('dotnet tool restore')}
|
|
135
|
+
|
|
133
136
|
${dim('# Set up Cloudflare D1 (run once)')}
|
|
134
137
|
${cyan('wrangler d1 create ' + projectName + '-db')}
|
|
135
138
|
${dim('# → copy the database_id into wrangler.toml')}
|
package/template/package.json
CHANGED
|
@@ -12,10 +12,11 @@
|
|
|
12
12
|
"dev:templates": "fjsx-watcher --dir src/client --out dist/client/templates",
|
|
13
13
|
"dev:page-templates": "fjsx-watcher --dir src/server/Endpoints/Pages --out dist/server/Pages",
|
|
14
14
|
"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",
|
|
15
|
-
"build:server": "dotnet fable src/server/Server.fsproj --outDir dist/server",
|
|
15
|
+
"build:server": "dotnet fable src/server/Server.fsproj --outDir dist/server --noCache",
|
|
16
16
|
"build:wrangler": "bun run build:assets && bun run build:templates && bun run build:page-templates && bun run build:server",
|
|
17
|
-
"dev": "bun run build:client && concurrently \"bun run dev:templates\" \"bun run dev:page-templates\" \"bun run dev:client\" \"wrangler dev\"",
|
|
17
|
+
"dev": "bun run build:client && concurrently \"bun run dev:templates\" \"bun run dev:page-templates\" \"bun run dev:client\" \"bun run dev:bundle\" \"wrangler dev\"",
|
|
18
18
|
"dev:client": "dotnet fable src/client/Client.fsproj --watch --outDir dist/client/fable",
|
|
19
|
+
"dev:bundle": "bun build --watch dist/client/fable/App.js --outdir dist/client --entry-naming bundle.js",
|
|
19
20
|
"deploy": "wrangler deploy",
|
|
20
21
|
"migrate": "bun run migrate.ts",
|
|
21
22
|
"migrate:remote": "bun run migrate.ts --remote",
|