Add client in frontend and client generation (#569)

This commit is contained in:
Alejandra
2023-12-26 10:51:46 -05:00
committed by GitHub
parent 311939e640
commit 49d610e443
29 changed files with 1347 additions and 27 deletions

View File

@@ -7,13 +7,17 @@
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"generate-client": "openapi --input ./openapi.json --useOptions --useUnionTypes --output ./src/client --client axios"
},
"dependencies": {
"axios": "1.6.2",
"form-data": "4.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "20.10.5",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@typescript-eslint/eslint-plugin": "^6.10.0",
@@ -22,6 +26,7 @@
"eslint": "^8.53.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.4",
"openapi-typescript-codegen": "0.25.0",
"typescript": "^5.2.2",
"vite": "^5.0.0"
}