forked from 0xWheatyz/SPARC
7a364e6736
Add openapi-typescript devDependency and npm scripts for generating typed TypeScript schema from the FastAPI OpenAPI spec. Include a static openapi.json snapshot for offline generation. - npm run generate: fetch schema from running backend and generate types - npm run generate:local: generate types from the bundled openapi.json Closes leeworks-agents/SPARC#26 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
41 lines
1.1 KiB
JSON
41 lines
1.1 KiB
JSON
{
|
|
"name": "sparc-dashboard",
|
|
"private": true,
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"lint": "eslint .",
|
|
"generate": "openapi-typescript http://localhost:8000/api/openapi.json -o src/api/schema.d.ts",
|
|
"generate:local": "openapi-typescript src/api/openapi.json -o src/api/schema.d.ts",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@tanstack/react-query": "^5.51.0",
|
|
"axios": "^1.7.2",
|
|
"lucide-react": "^0.400.0",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-router-dom": "^6.24.0",
|
|
"recharts": "^2.12.7"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.6.0",
|
|
"@types/react": "^18.3.3",
|
|
"@types/react-dom": "^18.3.0",
|
|
"@vitejs/plugin-react": "^4.3.1",
|
|
"autoprefixer": "^10.4.19",
|
|
"eslint": "^9.6.0",
|
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
"globals": "^15.8.0",
|
|
"postcss": "^8.4.39",
|
|
"tailwindcss": "^3.4.4",
|
|
"openapi-typescript": "^7.0.0",
|
|
"typescript": "~5.5.3",
|
|
"typescript-eslint": "^8.0.0",
|
|
"vite": "^5.3.3"
|
|
}
|
|
}
|