Skip to content

Commit

Permalink
add openapi, generate types
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanBonsignori committed Feb 16, 2024
1 parent 394bf29 commit 2a54d1d
Show file tree
Hide file tree
Showing 20 changed files with 1,424 additions and 3 deletions.
230 changes: 229 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"start": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"generate-api": "openapi --input ./src/api/openapi.json --output ./src/generated/api --useOptions"
},
"dependencies": {
"@emotion/react": "^11.11.3",
Expand All @@ -20,7 +21,8 @@
"@tanstack/react-query": "^5.18.1",
"@tanstack/react-query-devtools": "^5.18.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"react-router-dom": "^6.22.0"
},
"devDependencies": {
"@types/node": "^20.11.16",
Expand All @@ -32,6 +34,7 @@
"eslint": "^8.55.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"openapi-typescript-codegen": "^0.27.0",
"typescript": "^5.2.2",
"vite": "^5.0.8"
}
Expand Down
File renamed without changes.
Loading

0 comments on commit 2a54d1d

Please sign in to comment.