Files
website/package.json
T
enricobuehler 42a47cd2ab
Build & Deploy unom website / build (push) Successful in 11s
Build & Deploy unom website / deploy (push) Successful in 4s
website: read legal pages + footer from unom-cms
- Add src/lib/cms.ts: REST helpers (findPageBySlug, findFooter, findHeader)
- Add src/components/RichText.tsx: minimal Lexical → React renderer
  (heading h1-h4, paragraph, list, listitem, link, text + linebreaks +
  basic text-format bitflags).
- routes/legal/{imprint,privacy}.tsx now fetch via route loader; meta
  title + description come from the Page's own fields.
- Footer reads the Footer global via the root route's loader using
  getRouteApi('__root__'). Three sections + tagline match the previously
  hardcoded structure (now editable via cms.unom.io/admin).
- Drop react-markdown + src/content/legal/*.md (CMS is the source of truth).
2026-05-26 18:50:10 +02:00

42 lines
1001 B
JSON

{
"name": "@unom/website",
"private": true,
"type": "module",
"imports": {
"#/*": "./src/*"
},
"scripts": {
"dev": "vite dev --port 3000 --host",
"build": "vite build",
"start": "bun .output/server/index.mjs",
"typecheck": "tsc --noEmit",
"format": "biome format",
"lint": "biome lint",
"check": "biome check"
},
"dependencies": {
"@fontsource/inter": "^5.2.5",
"@tailwindcss/vite": "^4.3.0",
"@tanstack/react-router": "latest",
"@tanstack/react-start": "latest",
"@tanstack/router-plugin": "^1.168.9",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"nitro": "^3.0.260429-beta",
"react": "^19.2.6",
"react-dom": "^19.2.6",
"tailwind-merge": "^3.6.0",
"tailwindcss": "^4.3.0"
},
"devDependencies": {
"@biomejs/biome": "2.4.15",
"@types/node": "^25.9.1",
"@types/react": "^19.2.15",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.2",
"typescript": "^6.0.3",
"vite": "^8.0.14",
"vite-tsconfig-paths": "^6.1.1"
}
}