Files
baozaotumao c09c754983 fix: 补全前端最小可运行入口 + 修前端配置缺陷
- 新增 index.html / src/main.tsx / src/App.tsx / src/index.css 最小入口
- 补 tsconfig.node.json(tsconfig 引用却缺失,导致 tsc 失败)
- package.json 加 type:module + 缺失的 eslint 依赖
  (@eslint/js / globals / typescript-eslint),eslint.config.js 此前 import 即崩
- 验证:pnpm build / lint / typecheck 三门禁全过,dist 正常产出

至此 backend / agent / frontend 三服务最小骨架均可运行。
2026-06-01 23:21:57 -07:00

47 lines
1.2 KiB
Django/Jinja

{
"name": "{{ project_slug }}-frontend",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"lint": "eslint src",
"typecheck": "tsc --noEmit",
"typecheck:watch": "tsc --noEmit --watch",
"test": "vitest",
"test:run": "vitest run"
},
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"zustand": "^5.0.0",
"@tanstack/react-query": "^5.0.0",
"zod": "^3.23.0",
"sonner": "^1.5.0"
},
"devDependencies": {
"@types/react": "^18.3.0",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.0",
"vite": "^5.4.0",
"typescript": "^5.5.0",
"eslint": "^9.11.0",
"@eslint/js": "^9.11.0",
"globals": "^15.9.0",
"typescript-eslint": "^8.7.0",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-refresh": "^0.4.0",
"prettier": "^3.3.0",
"vitest": "^2.1.0",
"@testing-library/react": "^16.0.0",
"@testing-library/jest-dom": "^6.5.0",
"@vitest/coverage-v8": "^2.1.0",
"tailwindcss": "^3.4.0",
"autoprefixer": "^10.4.0",
"postcss": "^8.4.0",
"jsdom": "^25.0.0"
}
}