Files
cup26/package.json
T
NilsBriggen 7f4838d032 v2 Phase 2: match previews + team profiles
- buildPreviewData.ts: precomputes from 150y of results → h2h.json (825 WC-team
  pairings, full records + recent meetings) + scorers.json (top-10 all-time
  scorers per team). Committed goalscorers.csv.
- server/src/preview.ts: assembles MatchPreview / TeamProfile from three layers —
  historical (h2h, scorers), DB enrichment (ESPN form/lineups/venue), live model
  (W/D/L, xG, odds, Elo). /api/preview/:num + /api/team/:name.
- Client: rich /match/:num page (model expectation, recent form chips, H2H record
  + recent meetings, lineups-or-key-players) and /team/:name profile (Elo, odds,
  standing, fixtures, all-time scorers). Match cards now link to previews;
  cross-linking between matches and teams.
- Verified: Mexico-SA preview (81% W, 2-0, form, H2H 2-1-1, Borgetti 37) and
  Argentina profile (Messi 63) render; 22 tests pass; build clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 15:34:54 +02:00

66 lines
2.0 KiB
JSON

{
"name": "cup26",
"private": true,
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"preview": "vite preview",
"lint": "eslint .",
"typecheck": "tsc -b --noEmit",
"typecheck:server": "tsc --noEmit -p tsconfig.server.json",
"test": "vitest run",
"test:watch": "vitest",
"build:server": "node server/build.mjs",
"dev:server": "tsx watch server/src/index.ts",
"data:fixtures": "bun scripts/buildFixtures.ts",
"data:ratings": "bun scripts/buildRatings.ts",
"data:preview": "bun scripts/buildPreviewData.ts",
"data:viz": "bun scripts/buildStatsbombViz.ts",
"data:icons": "bun scripts/make-icons.mjs",
"data:build": "bun run data:icons && bun run data:fixtures && bun run data:ratings && bun run data:preview"
},
"dependencies": {
"@tanstack/react-router": "^1.95.0",
"clsx": "^2.1.1",
"d3-scale": "^4.0.2",
"lucide-react": "^1.17.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"recharts": "^2.15.0",
"tailwind-merge": "^2.6.0",
"zod": "^3.24.1",
"zustand": "^5.0.2"
},
"devDependencies": {
"@eslint/js": "^9.17.0",
"@fastify/static": "^9.1.3",
"@fastify/websocket": "^11.2.0",
"@tailwindcss/vite": "^4.0.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@testing-library/user-event": "^14.5.2",
"@types/d3-scale": "^4.0.8",
"@types/node": "^22.10.5",
"@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2",
"@types/ws": "^8.18.1",
"@vitejs/plugin-react": "^4.3.4",
"esbuild": "^0.28.0",
"eslint": "^9.17.0",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-refresh": "^0.4.16",
"fastify": "^5.8.5",
"globals": "^15.14.0",
"jsdom": "^25.0.1",
"tailwindcss": "^4.0.0",
"tsx": "^4.19.2",
"typescript": "^5.7.2",
"typescript-eslint": "^8.19.0",
"vite": "^6.0.7",
"vite-plugin-pwa": "^0.21.1",
"vitest": "^2.1.8"
}
}