Files
sites/package.json
CatoandClaude Opus 5.5 6d43009498 feat: import a sitekit repo, export a site as its own repo, compare any two renders
loki ADR-0001 build steps 4, 8 and 9 (tooling half).

- scripts/import-repo.ts + import-theme.ts: read a sitekit consumer's content
  module and globals.css into spec + theme + settings. Text tokens below
  WCAG AA move to the nearest passing shade, each change reported (camille:
  fg-muted 3.15→4.53:1, accent 3.94→4.54:1, nothing else).
- scripts/export-site.ts + export/template: a site bundle becomes a static
  Next repo with the exact sitekit the engine pins, the engine's own
  stylesheet and font copier (copied, one source), one git commit per
  version, and its own verify. Refuses a bundle it could not render, and
  never writes over a directory.
- scripts/compare-renders.mjs: render pages from two bases at 390/834/1440
  (with --map to fetch a real host from a local port) and exit 1 on any
  difference a visitor would notice.

Measured 2026-11-20: live camille repo vs the engine serving its imported
row, and the engine vs camille's export built to static files — no
differences on any page at any width.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:25:05 +01:00

50 lines
1.6 KiB
JSON

{
"name": "sites",
"version": "0.1.0",
"description": "One engine for every bitbaum data site: picks the site by the request's domain and renders its published version with @bitbaum/sitekit.",
"private": true,
"engines": {
"node": ">=20"
},
"packageManager": "pnpm@11.25.0",
"scripts": {
"dev": "next dev",
"build": "node scripts/copy-fonts.mjs && next build",
"start": "next start",
"lint": "eslint .",
"typecheck": "node scripts/copy-fonts.mjs && tsc --noEmit",
"type-check": "node scripts/copy-fonts.mjs && tsc --noEmit",
"test": "node scripts/copy-fonts.mjs && tsx --test test/*.test.ts",
"verify": "pnpm run format:check && pnpm run type-check && pnpm run lint && pnpm run test",
"format": "prettier --write .",
"format:check": "prettier --check .",
"fonts": "node scripts/copy-fonts.mjs",
"export": "tsx scripts/export-site.ts",
"compare": "node scripts/compare-renders.mjs",
"import": "tsx scripts/import-repo.ts"
},
"dependencies": {
"@bitbaum/design-tokens": "^1.7.1",
"@bitbaum/sitekit": "github:bitbaum/kits#ddba54d6c6393df7d0b8fad6ca5f47a57dbf5086&path:/packages/sitekit",
"next": "16.4.6",
"postgres": "^3.4.9",
"react": "19.3.1",
"react-dom": "19.3.1",
"zod": "^4.6.7"
},
"devDependencies": {
"@tailwindcss/postcss": "^4",
"@types/node": "^26",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^10",
"eslint-config-next": "^16.4.6",
"espree": "^11.2.0",
"playwright": "1.64.1",
"prettier": "3.10.0",
"tailwindcss": "^4",
"tsx": "^4.23.15",
"typescript": "^6.0.3"
}
}