Files
AndreaSlopFotografie/aidlc-docs/features/testimonials-redesign/construction/build-and-test/build-instructions.md
T
SluijsensandClaude Sonnet 5.5 7a5e713b69
Continuous Integration / check (pull_request) Successful in 1m45s
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 8m44s
Continuous Integration / deploy-production (pull_request) Skipped
Adds the AI-DLC documents of the testimonials redesign
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>
2026-11-06 01:24:15 +01:00

1.7 KiB

Build Instructions

Prerequisites

  • Build tool: pnpm 12.11 (packageManager in web/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 run pnpm install --frozen-lockfile first.
  • Environment variables: none needed locally. LIGHTHOUSE_PERFORMANCE=warn is set by CI (see performance-test-instructions.md).
  • System requirements: Chrome for Lighthouse and the browser checks (C:\Program Files\Google\Chrome\Application\chrome.exe on this PC); free port 4173 for pnpm preview and Lighthouse.

Build steps

  1. Install dependencies: cd web && pnpm install --frozen-lockfile.
  2. Build everything: pnpm build (runs tsc, vite build with prerender, and the script that moves inline scripts into files).
  3. Verify: the output lists the 12 prerendered pages (/, /404, /over-mij, /portfolio, /contact, /privacyverklaring, /soorten-fotoshoots and 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: run pnpm exec tsc --noEmit to see them without building; the Chakra types come from pnpm typegen (also run by postinstall).
  • vite build fails 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).