diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-12-06 17:38:08 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-12-06 17:38:08 +0900 |
| commit | 92b595581e5988cd57ebeb982a70c85bfef498c3 (patch) | |
| tree | 5b95c2b0a277ff7670206cdb16638e2ac5143c92 /package.json | |
| parent | 811458427593a4172a2cd535cc768db375350dca (diff) | |
| download | kioku-92b595581e5988cd57ebeb982a70c85bfef498c3.tar.gz kioku-92b595581e5988cd57ebeb982a70c85bfef498c3.tar.zst kioku-92b595581e5988cd57ebeb982a70c85bfef498c3.zip | |
feat(client): initialize React + Vite frontend foundation
Set up the client-side React application with Vite bundler:
- Add React 19 and Vite 7 with the React plugin
- Create index.html entry point and App component
- Configure Vite with API proxy to backend server
- Add client build scripts to package.json
- Update tsconfig for React JSX and DOM types
- Fix TypeScript errors in auth code (JWT_SECRET type narrowing)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/package.json b/package.json index 0bb6bdd..e888e55 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,10 @@ "main": "src/server/index.ts", "scripts": { "dev": "node --watch src/server/index.ts", - "build": "tsc", + "dev:client": "vite", + "build": "tsc && vite build", + "build:client": "vite build", + "preview": "vite preview", "start": "node dist/server/index.js", "test": "vitest run", "test:watch": "vitest", @@ -29,14 +32,20 @@ "drizzle-orm": "^0.44.7", "hono": "^4.10.7", "pg": "^8.16.3", + "react": "^19.2.1", + "react-dom": "^19.2.1", "zod": "^4.1.13" }, "devDependencies": { "@biomejs/biome": "^2.3.8", "@types/node": "^24.10.1", "@types/pg": "^8.15.6", + "@types/react": "^19.2.7", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^5.1.1", "drizzle-kit": "^0.31.7", "typescript": "^5.9.3", + "vite": "^7.2.6", "vitest": "^4.0.14" }, "pnpm": { |
