906f05f62f
- Backend: ts-rs ile DTO'lardan TypeScript tipleri (frontend/src/types, npm run types) - Hata ve health yanıtları tipli yapılara çevrildi - lib/api.ts: tek API istemcisi, Türkçe ApiError, ağ hatası mesajı - lib/query.ts: QueryClient (4xx tekrar denenmez, 401 → oturum kapanır) - lib/auth.ts: useMe, useLogin, useRegister, useLogout - Vitest: 7 API istemcisi testi (toplam 29) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
39 lines
938 B
JSON
39 lines
938 B
JSON
{
|
|
"name": "kakeibo-frontend",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"lint": "oxlint",
|
|
"preview": "vite preview",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@fontsource-variable/inter": "^5.3.0",
|
|
"@tailwindcss/vite": "^4.3.5",
|
|
"@tanstack/react-query": "^5.107.1",
|
|
"class-variance-authority": "^0.7.1",
|
|
"cn": "^0.5.2",
|
|
"lucide-react": "^1.72.0",
|
|
"radix-ui": "^1.8.1",
|
|
"react": "^19.3.1",
|
|
"react-dom": "^19.3.1",
|
|
"shadcn": "^4.23.0",
|
|
"tailwindcss": "^4.3.5",
|
|
"tw-animate-css": "^1.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^24.19.2",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"@vitejs/plugin-react": "^6.1.2",
|
|
"oxlint": "^1.90.0",
|
|
"typescript": "~7.0.2",
|
|
"vite": "^8.3.6",
|
|
"vitest": "^5.1.0"
|
|
}
|
|
}
|