refactor: remove svelte runtime
This commit is contained in:
parent
76fe468df5
commit
72d56cb3c9
46 changed files with 40 additions and 2301 deletions
19
README.md
19
README.md
|
|
@ -1,6 +1,6 @@
|
|||
# Dimension Lab Website
|
||||
|
||||
Standalone SvelteKit runtime for the Dimension Lab system overview dashboard.
|
||||
Standalone React runtime for the Dimension Lab system overview dashboard.
|
||||
|
||||
This project is not a Homepage customization and does not depend on Homepage
|
||||
runtime, frontend code, or configuration. The dashboard will be model-driven:
|
||||
|
|
@ -19,7 +19,7 @@ This MVP uses Drizzle with Bun SQLite for local file-backed persistence.
|
|||
## Scripts
|
||||
|
||||
- `bun run dev`: start the local development server.
|
||||
- `bun run check`: run Svelte and TypeScript checks.
|
||||
- `bun run check`: run TypeScript checks.
|
||||
- `bun run test`: run Vitest.
|
||||
- `bun run test:unit`: run Vitest explicitly as the unit test stage.
|
||||
- `bun run test:e2e`: build and run Playwright browser smoke and QA checks.
|
||||
|
|
@ -63,9 +63,10 @@ can replace them without changing presentation components.
|
|||
|
||||
## Runtime Shape
|
||||
|
||||
The SvelteKit build uses the Node adapter, and the current persistence runtime
|
||||
is Bun because the MVP SQLite driver is `bun:sqlite`. Later issues add the
|
||||
seed data expansion and rendering pipeline.
|
||||
The browser app is built with Vite and React. Production uses a small Bun HTTP
|
||||
server at `build/index.js` to serve the Vite `dist/` assets and JSON API routes.
|
||||
The current persistence runtime is Bun because the MVP SQLite driver is
|
||||
`bun:sqlite`.
|
||||
|
||||
## Storybook
|
||||
|
||||
|
|
@ -87,7 +88,7 @@ Run the CI-ready release gate with:
|
|||
bun run test:qa
|
||||
```
|
||||
|
||||
The gate runs Svelte/TypeScript checks, Vitest coverage for model,
|
||||
The gate runs TypeScript checks, Vitest coverage for model,
|
||||
persistence, renderer, datasource mocks, and presentation boundaries, the
|
||||
production build, the static Storybook build, and Playwright desktop/mobile
|
||||
smoke checks against the built adapter output. Playwright also performs
|
||||
|
|
@ -104,8 +105,8 @@ belong in validated model data, not reusable components.
|
|||
|
||||
## Deployment Notes
|
||||
|
||||
The production build uses the SvelteKit Node adapter, but the current SQLite
|
||||
driver depends on Bun. A minimal deployment flow is:
|
||||
The production build emits Vite client assets under `dist/` and a Bun server
|
||||
entry at `build/index.js`. A minimal deployment flow is:
|
||||
|
||||
```sh
|
||||
bun install --frozen-lockfile
|
||||
|
|
@ -119,7 +120,7 @@ the checked-in `drizzle/` directory so startup migrations can run.
|
|||
|
||||
### Internal Container
|
||||
|
||||
The checked-in `Containerfile` builds the SvelteKit adapter output into a Bun
|
||||
The checked-in `Containerfile` builds the React client and Bun server into a
|
||||
runtime image. For the Dimension Lab internal host, run it behind Caddy on a
|
||||
loopback port and mount persistent state at `/data`:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue