Files
alhp-web/frontend/package.json
vikingowl 24c3463c86 Add OpenAPI integration and generate API types
This commit adds `openapi-typescript` and `openapi-fetch` dependencies to enable OpenAPI integration. A new `generate-api-types` script is introduced to generate TypeScript types from the OpenAPI spec, and it runs prior to the `build` process via the `prebuild` script. Finally, updates to `yarn.lock` reflect the addition of these dependencies.
2025-05-04 22:18:02 +02:00

37 lines
1.0 KiB
JSON

{
"name": "alhp-web",
"version": "0.0.0",
"scripts": {
"generate-api-types": "yarn openapi-typescript ../openapi_alhp.yaml --output src/generated/alhp.ts",
"prebuild": "npm run generate-api-types",
"dev": "node --no-warnings ./node_modules/.bin/vite",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview"
},
"dependencies": {
"@fontsource/roboto": "^5.2.5",
"@mdi/font": "7.4.47",
"fork-awesome": "^1.2.0",
"openapi-fetch": "^0.13.5",
"pinia": "^3.0.2",
"roboto-fontface": "^0.10.0",
"vue": "^3.5.13",
"vuetify": "^3.8.1"
},
"devDependencies": {
"@babel/types": "^7.27.0",
"@types/node": "^22.14.1",
"@vitejs/plugin-vue": "^5.2.3",
"openapi-typescript": "^7.6.1",
"prettier": "^3.5.3",
"sass": "^1.86.3",
"typescript": "^5.8.3",
"unplugin-fonts": "^1.3.1",
"unplugin-vue-components": "^28.5.0",
"vite": "^6.2.6",
"vite-plugin-vuetify": "^2.1.1",
"vue-tsc": "^2.2.8"
},
"packageManager": "yarn@4.7.0"
}