4e4e75a1d8
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>
18 lines
661 B
JavaScript
18 lines
661 B
JavaScript
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');
|