Requirements, execution plan, functional design, code summaries, build and test results and the audit log; the reverse-engineering notes and the feature registry are updated. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1.7 KiB
1.7 KiB
Build Instructions
Prerequisites
- Build tool: pnpm 12.11 (
packageManagerinweb/package.json), Vite, TypeScript; Node as in the CI image. - Dependencies: the lock file
web/pnpm-lock.yaml; no dependency was added or changed in this feature. In a new worktree runpnpm install --frozen-lockfilefirst. - Environment variables: none needed locally.
LIGHTHOUSE_PERFORMANCE=warnis set by CI (see performance-test-instructions.md). - System requirements: Chrome for Lighthouse and the browser checks (
C:\Program Files\Google\Chrome\Application\chrome.exeon this PC); free port 4173 forpnpm previewand Lighthouse.
Build steps
- Install dependencies:
cd web && pnpm install --frozen-lockfile. - Build everything:
pnpm build(runstsc,vite buildwith prerender, and the script that moves inline scripts into files). - Verify: the output lists the 12 prerendered pages (
/,/404,/over-mij,/portfolio,/contact,/privacyverklaring,/soorten-fotoshootsand its five shoot pages) and ends with "Inline scripts verplaatst: 12 pagina's gecontroleerd, 16 scripts verplaatst, 28 bestanden geschreven".
Build artifacts: web/dist/client (static HTML per page, assets, moved scripts). Common warnings: none expected.
Troubleshooting
- Type errors in
tsc: runpnpm exec tsc --noEmitto see them without building; the Chakra types come frompnpm typegen(also run bypostinstall). vite buildfails during prerender: a page throws while rendering on the server; run the failing route's test (pnpm exec vitest run src/<test>) to find it.- Port 4173 in use: another session may be running Lighthouse; ask before starting
pnpm preview(see the parallel-sessions agreement).