sonda/web/package.json
tgiachi f1da4b5aaf feat(web): scaffold the React app with Vite, Tailwind and shadcn/ui
- Vite, React 19 and TypeScript in web/, Vitest with jsdom and Testing Library
- Tailwind v4 and shadcn/ui, with Figtree and Fraunces bundled locally
- npm run gen:api builds src/api/schema.d.ts from the OpenAPI spec
- dev server proxies /api to sondad (SONDA_URL, default 127.0.0.1:8080)
- mockFetch test helper that refuses unmatched requests
2026-11-12 11:15:50 +01:00

47 lines
1.2 KiB
JSON

{
"name": "sonda-web",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "oxlint",
"preview": "vite preview",
"test": "vitest run",
"gen:api": "node scripts/gen-api.mjs"
},
"dependencies": {
"@base-ui/react": "^1.9.0",
"@fontsource/figtree": "^5.3.0",
"@fontsource/fraunces": "^5.3.0",
"@tanstack/react-query": "^5.107.1",
"class-variance-authority": "^0.7.1",
"cn": "^0.5.2",
"i18next": "^27.1.1",
"lucide-react": "^1.72.0",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"react-i18next": "^18.0.1",
"react-router-dom": "^7.18.5",
"shadcn": "^4.23.0",
"tw-animate-css": "^1.4.0",
"zustand": "^5.1.0"
},
"devDependencies": {
"@tailwindcss/vite": "^4.3.5",
"@testing-library/jest-dom": "^7.0.1",
"@testing-library/react": "^16.3.3",
"@testing-library/user-event": "^14.6.10",
"@types/node": "^24.19.2",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@vitejs/plugin-react": "^6.1.2",
"jsdom": "^31.0.0",
"oxlint": "^1.90.0",
"tailwindcss": "^4.3.5",
"typescript": "~7.0.2",
"vite": "^8.3.6",
"vitest": "^5.1.0"
}
}