- 依赖 @stash/ui(file:../../stash-ui),统一引入 style.css 与 Toaster - 任务面板、表单、弹窗、日志、状态标签全部迁到组件库,App.css 只保留页面布局 - 移除自写 useFocusTrap,改用基于原生 dialog 的 Modal - 修复 LogViewer 流式追加时误判离开底部、导致不再自动跟随的问题 - 发布脚本检查 stash-ui 产物;README 补充组件库构建与 file: 依赖刷新说明
49 lines
1.3 KiB
JSON
49 lines
1.3 KiB
JSON
{
|
|
"name": "taskpilot-frontend",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"packageManager": "[email protected]",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"lint": "oxlint",
|
|
"typecheck": "tsc -b",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:e2e": "powershell -NoProfile -ExecutionPolicy Bypass -File ../scripts/e2e.ps1",
|
|
"generate:api": "openapi-typescript ../contracts/openapi.json -o src/api/generated.ts",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@hookform/resolvers": "^5.9.2",
|
|
"@stash/ui": "file:../../stash-ui",
|
|
"@tanstack/react-query": "^5.104.3",
|
|
"react": "^19.2.8",
|
|
"react-dom": "^19.2.8",
|
|
"react-hook-form": "^7.90.0",
|
|
"react-router-dom": "^7.18.4",
|
|
"zod": "^4.6.7"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.64.1",
|
|
"@testing-library/jest-dom": "^7.0.1",
|
|
"@testing-library/react": "^16.3.3",
|
|
"@testing-library/user-event": "^14.6.8",
|
|
"@types/node": "^24.13.3",
|
|
"@types/react": "^19.2.18",
|
|
"@types/react-dom": "^19.2.7",
|
|
"@vitejs/plugin-react": "^6.1.1",
|
|
"jsdom": "^30.1.3",
|
|
"openapi-typescript": "^7.13.0",
|
|
"oxlint": "^1.81.0",
|
|
"typescript": "~5.9.3",
|
|
"vite": "^8.3.4",
|
|
"vitest": "^5.0.5"
|
|
},
|
|
"volta": {
|
|
"node": "24.12.0",
|
|
"pnpm": "11.20.0"
|
|
}
|
|
}
|