Skip to content

Commit 816f40b

Browse files
authored
feat: openapi fetch and types (#26)
* feat: openapi fetch and types * cleanup * cleanup * cleanup
1 parent 1b8ea25 commit 816f40b

File tree

16 files changed

+626
-57
lines changed

16 files changed

+626
-57
lines changed

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
VITE_EXAMPE_KEY = ""
2+
EXAMPE_KEY = ""

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
# Linting
1212
.eslintcache
1313

14+
# Build
1415
dist
1516
dist-ssr
1617

17-
1818
# Editor directories and files
1919
.vscode/*
2020
!.vscode/extensions.json
@@ -29,3 +29,6 @@ dist-ssr
2929
npm-debug.log*
3030
yarn-debug.log*
3131
yarn-error.log*
32+
33+
# misc
34+
.env.local

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,15 @@
1414

1515
:bar_chart: TanStack Query: https://tanstack.com/query/latest/docs/framework/react/overview
1616

17+
### Data Fetching
18+
19+
🪵🐕 OpenApi Fetch: https://openapi-ts.dev/openapi-fetch/ +
20+
OpenApi Typescript: https://openapi-ts.dev/introduction
21+
1722
### Linting
1823

19-
🤓 eslint: https://github.com/eslint/eslint with prettier: https://github.com/prettier/prettier
24+
🤓 eslint: https://github.com/eslint/eslint +
25+
prettier: https://github.com/prettier/prettier
2026

2127
### Unit testing
2228

eslint.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ export default [
1010
eslintPluginPrettierRecommended,
1111
tseslint.configs.eslintRecommended,
1212
{
13-
ignores: ['**/dist', '.prettierrc.js', '**/routeTree.gen.ts'],
13+
ignores: [
14+
'**/dist',
15+
'.prettierrc.js',
16+
'**/routeTree.gen.ts',
17+
'**/openapi-types/**',
18+
],
1419
},
1520
{
1621
plugins: {

package-lock.json

Lines changed: 234 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"dependencies": {
77
"@tanstack/react-query": "^5.62.15",
88
"@tanstack/react-router": "^1.95.1",
9+
"openapi-fetch": "^0.13.4",
910
"react": "^19.0.0",
1011
"react-dom": "^19.0.0"
1112
},
@@ -27,6 +28,7 @@
2728
"eslint-plugin-react-hooks": "^5.1.0",
2829
"eslint-plugin-react-refresh": "^0.4.16",
2930
"globals": "^15.14.0",
31+
"openapi-typescript": "^7.5.2",
3032
"postcss-nested": "^7.0.2",
3133
"postcss-preset-env": "^10.1.3",
3234
"prettier": "^3.4.2",

0 commit comments

Comments
 (0)