Skip to content

Commit

Permalink
add script to build http client by swagger.json
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqcode committed Jan 24, 2024
1 parent 150160e commit 3d591a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/swagger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"private": true,
"scripts": {
"swagger:build": "npx @redocly/cli build-docs --output ./dist/http-api.html",
"swagger:serve": "npx @redocly/cli preview-docs"
"swagger:serve": "npx @redocly/cli preview-docs",
"swagger:build-http-client": "npx swagger-typescript-api -n v2 -p ./swagger.json -o ../../ui/artalk/src/api --responses --sort-types"
},
"devDependencies": {
"@redocly/cli": "1.5.0"
Expand Down

0 comments on commit 3d591a5

Please sign in to comment.