Phase 0: scaffold cup26 — Vite+React+Fastify TS PWA, broadcast theme, app shell

Mirrors the TTRPG stack (strict TS, Tailwind 4, vite-plugin-pwa, esbuild server
bundle, multi-stage Dockerfile, Traefik compose). Floodlit-pitch design tokens,
UI primitives (Button/Card/Badge), TanStack Router shell with Live/Groups/
Bracket/Predict/Story routes (placeholders), dependency-free PWA icon generator.
Raw data staged: openfootball 2026 fixtures + martj42 international results CSV.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-11 12:49:13 +02:00
commit 4e4e75a1d8
39 changed files with 53029 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { build } from 'esbuild';
import { fileURLToPath } from 'node:url';
// Bundle the server + its shared `@/lib/*` imports (model, sync types) into one
// ESM file. npm deps (fastify, zod, …) stay external and install at runtime.
await build({
entryPoints: ['server/src/index.ts'],
outfile: 'server/dist/index.js',
bundle: true,
platform: 'node',
format: 'esm',
target: 'node20',
packages: 'external',
banner: { js: "import { createRequire } from 'module'; const require = createRequire(import.meta.url);" },
alias: { '@': fileURLToPath(new URL('../src', import.meta.url)) },
});
console.log('server bundled → server/dist/index.js');
+15
View File
@@ -0,0 +1,15 @@
{
"name": "cup26-server",
"private": true,
"type": "module",
"main": "dist/index.js",
"scripts": {
"start": "node dist/index.js"
},
"dependencies": {
"@fastify/static": "^9.1.3",
"@fastify/websocket": "^11.2.0",
"fastify": "^5.8.5",
"zod": "^3.25.76"
}
}