docs: build and deploy to Vercel (#1707)

This commit is contained in:
Rafael Cárdenas
2023-08-21 12:27:00 -06:00
committed by GitHub
parent 79576f8854
commit 76df6a0f9a
5 changed files with 2031 additions and 195 deletions

View File

@@ -13,7 +13,7 @@
"lint:openapi": "swagger-cli validate ./openapi.yaml",
"generate:types": "ts-node ./scripts/generate-types.ts",
"generate:schemas": "gulp && npm run generate:types",
"generate:git-info": "npm run generate:git-info --prefix .. && export API_VERSION=$(shx tail -n 1 ../.git-info) && speccy resolve --output .tmp/openapi.resolved.yaml openapi.yaml && shx sed -i 'STACKS_API_VERSION' ${API_VERSION:-1.0.0} .tmp/openapi.resolved.yaml > /dev/null",
"generate:git-info": "npm run generate:git-info --prefix .. && export API_VERSION=$(shx tail -n 1 ../.git-info) && speccy resolve --output .tmp/openapi.resolved.yaml openapi.yaml && shx sed -i 'STACKS_API_VERSION' ${API_VERSION:-1.0.0} .tmp/openapi.resolved.yaml > /dev/null && any-json convert .tmp/openapi.resolved.yaml .tmp/openapi.json",
"generate:docs": "redoc-cli bundle --output .tmp/index.html .tmp/openapi.resolved.yaml",
"generate:postman": "openapi2postmanv2 --spec .tmp/openapi.resolved.yaml --output .tmp/collection.json --options folderStrategy=Tags,requestParametersResolution=Example,exampleParametersResolution=Example,schemaFaker=false 2>/dev/null",
"validate:schemas": "rimraf .tmp && gulp flattenSchemas --silent && ts-node ./scripts/validate-schemas.ts",
@@ -40,6 +40,7 @@
"@types/json-schema-merge-allof": "0.6.0",
"@types/node": "16.18.3",
"ajv": "6.12.6",
"any-json": "^3.1.0",
"chalk": "4.1.1",
"del": "5.1.0",
"glob": "7.1.6",