Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attempt to fix performance issue #550

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ jobs:
- name: Install and Bundle
run: |
yarn install
yarn bundle:redoc
yarn bundle:redocly
yarn redocly:split
yarn redocly:site
yarn bundle:swagger

- name: Deploy Local
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
},
"scripts": {
"serve": "redoc-cli serve --template redoc/template.hbs.html --options='{\"menuToggle\":true,\"expandSingleSchemaField\":true,\"sortPropsAlphabetically\":true,\"generatedPayloadSamplesMaxDepth\":20,\"theme\":{\"colors\":{\"primary\":{\"main\":\"#0086ff\"}}}}' --watch api/spot.yaml",
"bundle:redocly": "redocly bundle api/spot.yaml --output build/temp.yaml",
"redocly:split": "redocly split build/temp.yaml --outDir build",
"redocly:site": "redocly build-docs build/openapi.yaml -t redoc/template.hbs.html -o build/index.html",
"bundle:redoc": "redoc-cli bundle --template redoc/template.hbs.html --options='{\"menuToggle\":true,\"expandSingleSchemaField\":true,\"sortPropsAlphabetically\":true,\"generatedPayloadSamplesMaxDepth\":20,\"theme\":{\"colors\":{\"primary\":{\"main\":\"#0086ff\"}}}}' --output build/index.html api/spot.yaml",
"bundle:swagger": "swagger-cli bundle --outfile build/openapi.json api/spot.yaml",
"validate": "swagger-cli validate --no-schema api/spot.yaml",
Expand All @@ -21,7 +24,8 @@
"devDependencies": {
"prettier": "^2.6.2",
"redoc-cli": "^0.13.20",
"swagger-cli": "^4.0.4"
"swagger-cli": "^4.0.4",
"@redocly/cli": "1.4.0"
},
"engines": {
"node": ">=12"
Expand Down