Create type-safe TypeScript API client automatically generated from the OpenAPI specification. Includes generated schema types and documented client wrapper for type-safe backend communication. Ref: T008 (specs/001-modbus-relay-control)
26 lines
660 B
JSON
26 lines
660 B
JSON
{
|
|
"name": "frontend",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vue-tsc -b && vite build",
|
|
"preview": "vite preview",
|
|
"generate:api": "curl -s http://localhost:3100/specs > openapi.yaml && openapi-typescript openapi.yaml -o src/api/schema.ts && rm openapi.yaml"
|
|
},
|
|
"dependencies": {
|
|
"openapi-fetch": "^0.15.0",
|
|
"vue": "^3.5.24"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^24.10.1",
|
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
"@vue/tsconfig": "^0.8.1",
|
|
"openapi-typescript": "^7.10.1",
|
|
"typescript": "~5.9.3",
|
|
"vite": "^7.2.4",
|
|
"vue-tsc": "^3.1.4"
|
|
}
|
|
}
|