Skip to content

Commit e0cf74a

Browse files
committed
feat: using more options in example app
1 parent 4a7d634 commit e0cf74a

File tree

5 files changed

+271
-697
lines changed

5 files changed

+271
-697
lines changed

examples/react-app/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
"dev:mock": "prism mock ./petstore.yaml",
1010
"build": "tsc && vite build",
1111
"preview": "vite preview",
12-
"generate:api": "node ../../dist/src/cli.js -p ./petstore.yaml",
12+
"generate:api": "node ../../dist/src/cli.js -i ./petstore.yaml -c axios --exportSchemas=true --postfix=Client --request ./request.ts",
1313
"test:generated": "npm run generate:api && tsc ./openapi/queries/index.ts --noEmit --target esnext --moduleResolution node"
1414
},
1515
"dependencies": {
1616
"@tanstack/react-query": "^4.0.10",
1717
"react": "^18.2.0",
18-
"react-dom": "^18.2.0"
18+
"react-dom": "^18.2.0",
19+
"axios": "^0.27.2",
20+
"form-data": "4.x"
1921
},
2022
"devDependencies": {
2123
"@stoplight/prism-cli": "^4.10.1",

0 commit comments

Comments
 (0)