npm -g install js-beautify
which js-beautify
then take the output and copy itexport JS_POST_PROCESS_FILE=<copied-value from 2>
npm -g install prettier
which prettier
then take the output and copy itexport TS_POST_PROCESS_FILE="<copied-value from 5> --write"
npx @openapitools/openapi-generator-cli generate -i openapi.json -g typescript-axios -c ./openapi-generator.yaml
npm adduser
npm install -g typescript
npm publish --access public
Last active
March 28, 2024 21:02
-
-
Save skeptrunedev/961050e9ccb28409a2fe09411afff461 to your computer and use it in GitHub Desktop.
OpenAPI JS Generation Steps
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment