Restore the deploy/deploy:create tasks to the template deno.json. They carry the reusable config a lofi static PWA needs on Deno Deploy — build, then push dist/ as the deploy root (static, no remote build, no src/app.ts misdetection) — with no org/app baked in. A fresh project just supplies --org/--app. Only the reference-specific deploy field (felinestatemachine/lofi-dev) stays removed. Document the flow in the generated and reference READMEs.
- commit
- 5fd31784493f3dfd1bfc208192827dbe7f5f8b57
- parent
- 02f2e8c760e2f20155952cb2aa68257044ee079a
- author
- Dami <dami.etoile@gmail.com>
| M | apps/ | 8 | ++++++-- |
| M | apps/ | 2 | ++ |
| M | package/ | 10 | ++++++++++ |
| M | package/ | 4 | ++-- |
@@ -31,8 +31,12 @@ Chromium); run it against a synced deployment with
3131 `LOFI_E2E_BASE_URL=http://127.0.0.1:4321/ deno test -A tests/convergence_e2e_test.ts`.3232 3333 `deno task build` produces a self-contained static PWA in `dist/` (the Preact islands compile to34-`dist/_astro/*.js`), and `deno task preview` serves it locally. Hosting the built site is left to35-the author's platform of choice; this repository ships no site-deploy pipeline.34+`dist/_astro/*.js`); `deno task preview` serves it locally.35+`deno task deploy:create --org <org>36+--app <app>` hosts it on Deno Deploy as a static site and37+`deno task deploy` pushes updates — both push the built `dist/` as the deploy root (nothing to build38+remotely, and no `src/app.ts` misdetection). These are generic, org/app-free scaffolding; releasing39+the `@nzip/lofi` package itself is a separate JSR publish (repo root), not a site deploy.3640 3741 Passkey backup and recovery are intentionally absent. The pinned Jazz alpha exposes a rejected3842 credential design, so this reference uses a device-local identity and does not imply recoverability.@@ -32,6 +32,8 @@
3232 "test": "deno run -A @nzip/lofi/test",3333 "build": "deno run -A @nzip/lofi/build",3434 "preview": "deno run -A @nzip/lofi/preview",35+ "deploy": "deno task build && deno deploy --prod dist",36+ "deploy:create": "deno task build && deno deploy create dist --source local --do-not-use-detected-build-config --runtime-mode static --static-dir . --region us",3537 "schema:validate": "deno run -A npm:jazz-tools@2.0.0-alpha.53 validate",3638 "schema:deploy": "deno run --env-file=.env -A npm:jazz-tools@2.0.0-alpha.53 deploy --migrations-dir src/migrations",3739 "migrations:create": "deno run -A npm:jazz-tools@2.0.0-alpha.53 migrations create --migrations-dir src/migrations",@@ -55,6 +55,16 @@ you want configuration diagnostics without starting the application.
5555 5656 Public tasks: \`dev\`, \`doctor\`, \`test\`, \`build\`, and \`preview\`. Schema and sync tasks:5757 \`schema:validate\`, \`schema:deploy\`, \`migrations:create\`, and \`migrations:push\`.58+59+## Hosting60+61+\`deno task build\` emits a static PWA in \`dist/\`. The deploy tasks host it on Deno Deploy as a62+static site — they push the built \`dist/\` as the deploy root, which serves it as plain assets:63+64+- \`deno task deploy:create --org <org> --app <app>\` — one-time: create the app from \`dist/\`.65+- \`deno task deploy\` — thereafter: build and push \`dist/\`.66+67+Point them at any other static host by editing those two tasks.5868 `;5969 }6070 @@ -2,11 +2,11 @@
22 ".env.example": "c22aed73c7089168ac777fd4f68ad504f9b826ea7185b705514a4ac5505918b1",33 ".gitignore": "9efb15c6a9bfc20f296ed712e74273b6015a0dd9a40f7e861b8711dcf61825f1",44 "astro.config.ts": "8a19cae348af7fcbd9db119d2423dd2e464f0e5ace6e5723d06cd3a1cc9a0d4b",5- "deno.json": "050a8f96f1176db717f14af677a604ddd9925c6459f413d9d77e282c0353720d",5+ "deno.json": "679b5f2a8da16e060c2423ae159af5fba9a60d4435b5a3696425978010cbd2b7",66 "public/favicon.svg": "23efdb888dae688715faafe3ef94f7b5ad1976afcc715c0a742218b54732c6ad",77 "public/manifest.webmanifest": "7d492285fd982e6e68fa04f12d78cd4f0bef4343f0408e314f1582029f3ea407",88 "public/sw.js": "d816161fd5a35f2c477ca72eaa5ba58eb8d94795a4399d29a19838e886dafa31",9- "README.md": "3ff8e2817e8f9c6e5bf60d186b928c442975418b0caa5724e68d02993dd68532",9+ "README.md": "6a116909a8e9a92a4d48932d2d9672882171cfe1eb1d9d7caa8d36a6e4af8348",1010 "src/_lofi/boot.ts": "dd66bd1e5ddb88599a0cbadb2c2cf932993734843c7e5cf41d28b389560a32c7",1111 "src/_lofi/config.ts": "3ae7e31b3915e12eb595eeea158c0dbd026f4f0f8bf7b0f4809117bec9752f1a",1212 "src/_lofi/device-capabilities_test.ts": "0eece375a0645e915294c7647cba4666e992a8a471cb636cf889bcd323a65ee5",