mirror of
https://github.com/alexgo-io/stacks-blockchain-api.git
synced 2026-04-30 05:45:37 +08:00
docs: build and deploy to Vercel (#1707)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user