Feature 01 task 2: Vite React TypeScript web skeleton
Independent review Approved — 0 high findings (#3)
Independent review Approved — 0 high findings (#3)
Add web/ with React 19, TypeScript, Vite, React Router 7 and TanStack Query 5. Scripts: dev, build (tsc --noEmit + vite build), preview, typecheck and test (Vitest run, jsdom, Testing Library). The dev server proxies /api, /auth and /media to http://localhost:8080. App renders a placeholder "MealQuest" shell covered by a smoke test. package-lock.json is committed; node_modules and dist stay ignored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { defineConfig } from 'vitest/config'
|
||||
import react from '@vitejs/plugin-react'
|
||||
|
||||
const backend = 'http://localhost:8080'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': backend,
|
||||
'/auth': backend,
|
||||
'/media': backend,
|
||||
},
|
||||
},
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
setupFiles: ['./src/test/setup.ts'],
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user