chore: openapi doc generator (#2644)
* chore: extract the type and comment from apis * chore: template code * feat: openapi * pref: openapi generator. send into public/openapi folder
Showing
| ... | @@ -10,8 +10,7 @@ | ... | @@ -10,8 +10,7 @@ |
| "postinstall": "sh ./scripts/postinstall.sh", | "postinstall": "sh ./scripts/postinstall.sh", | ||
| "initIcon": "node ./scripts/icon/init.js", | "initIcon": "node ./scripts/icon/init.js", | ||
| "previewIcon": "node ./scripts/icon/index.js", | "previewIcon": "node ./scripts/icon/index.js", | ||
| "i18n:delete-unused-keys": "node ./scripts/i18n/delete-unused-keys.js", | "api:gen": "tsc ./scripts/openapi/index.ts && node ./scripts/openapi/index.js && npx @redocly/cli build-docs ./scripts/openapi/openapi.json -o ./projects/app/public/openapi/index.html" | ||
| "i18n:query": "node ./scripts/i18n/query.js" | |||
| }, | }, | ||
| "devDependencies": { | "devDependencies": { | ||
| "@chakra-ui/cli": "^2.4.1", | "@chakra-ui/cli": "^2.4.1", | ||
| ... | ... |
This diff is collapsed.
Click to expand it.
projects/app/public/openapi/index.html
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
scripts/openapi/.env
0 → 100644
scripts/openapi/.gitignore
0 → 100644
scripts/openapi/index.ts
0 → 100644
scripts/openapi/openapi.ts
0 → 100644
scripts/openapi/package.json
0 → 100644
| { | |||
| "name": "test", | |||
| "module": "index.js", | |||
| "scripts": { | |||
| "build": "tsc index.ts" | |||
| }, | |||
| "devDependencies": { | |||
| "@babel/types": "^7.25.6", | |||
| "@types/babel__generator": "^7.6.8", | |||
| "@types/babel__traverse": "^7.20.6" | |||
| }, | |||
| "peerDependencies": { | |||
| "typescript": "^5.0.0" | |||
| }, | |||
| "dependencies": { | |||
| "@babel/generator": "^7.25.6", | |||
| "@babel/parser": "^7.25.6", | |||
| "@babel/traverse": "^7.25.6", | |||
| "babel": "^6.23.0" | |||
| } | |||
| } |
scripts/openapi/template.md
0 → 100644
scripts/openapi/type.d.ts
0 → 100644
scripts/openapi/utils.ts
0 → 100644
Please
register
or
sign in
to comment