From ed39c60ebc10efe2b644172e7c82f943c4fba3cc Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 27 Jul 2026 16:37:44 +0200 Subject: bootstrap: SvelteKit + adapter-node + plain CSS + Vitest @libsql/client + Drizzle ORM for SQLite, Prettier + ESLint flat config. Multi-stage Dockerfile (node:26-slim) for Caddy-backed deployment. --- src/app.css | 37 +++++++++++++++++++++++++++++++++++++ src/app.d.ts | 7 +++++++ src/app.html | 12 ++++++++++++ src/routes/+layout.svelte | 19 +++++++++++++++++++ src/routes/+page.svelte | 6 ++++++ src/smoke.test.ts | 7 +++++++ 6 files changed, 88 insertions(+) create mode 100644 src/app.css create mode 100644 src/app.d.ts create mode 100644 src/app.html create mode 100644 src/routes/+layout.svelte create mode 100644 src/routes/+page.svelte create mode 100644 src/smoke.test.ts (limited to 'src') diff --git a/src/app.css b/src/app.css new file mode 100644 index 0000000..3d027fb --- /dev/null +++ b/src/app.css @@ -0,0 +1,37 @@ +*, +*::before, +*::after { + box-sizing: border-box; + margin: 0; + padding: 0; +} + +:root { + font-family: + system-ui, + -apple-system, + sans-serif; + font-size: 16px; + line-height: 1.5; + color: #1a1a1a; + background-color: #fafafa; +} + +body { + min-height: 100dvh; +} + +h1 { + font-size: 2rem; + font-weight: 700; +} + +h2 { + font-size: 1.5rem; + font-weight: 600; +} + +button { + cursor: pointer; + font-family: inherit; +} diff --git a/src/app.d.ts b/src/app.d.ts new file mode 100644 index 0000000..901835a --- /dev/null +++ b/src/app.d.ts @@ -0,0 +1,7 @@ +import 'svelte'; + +declare global { + namespace App {} +} + +export {}; diff --git a/src/app.html b/src/app.html new file mode 100644 index 0000000..0950b2d --- /dev/null +++ b/src/app.html @@ -0,0 +1,12 @@ + + + + + + + %sveltekit.head% + + +
%sveltekit.body%
+ + diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte new file mode 100644 index 0000000..db5327e --- /dev/null +++ b/src/routes/+layout.svelte @@ -0,0 +1,19 @@ + + + + Home + + +
+ {@render children()} +
+ + diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte new file mode 100644 index 0000000..1b6e963 --- /dev/null +++ b/src/routes/+page.svelte @@ -0,0 +1,6 @@ + + +

Home

+

Welcome! Groceries and chores coming soon.

diff --git a/src/smoke.test.ts b/src/smoke.test.ts new file mode 100644 index 0000000..ae2b326 --- /dev/null +++ b/src/smoke.test.ts @@ -0,0 +1,7 @@ +import { describe, it, expect } from 'vitest'; + +describe('smoke', () => { + it('math works', () => { + expect(1 + 1).toBe(2); + }); +}); -- cgit v1.3