Skip to content

Instantly share code, notes, and snippets.

@yousifalraheem
Created June 14, 2020 07:38
Show Gist options
  • Save yousifalraheem/7554f39a7721e0a89ddc8ea07f3d7897 to your computer and use it in GitHub Desktop.
Save yousifalraheem/7554f39a7721e0a89ddc8ea07f3d7897 to your computer and use it in GitHub Desktop.
NPM Package script with cleaned up script using npm package variables
{
"config": {
"swaggerUrl": "http://loooooong-url-to-your-application-swagger-url/v2/swagger.json"
},
"scripts": {
"generate": "openapi-generator -i $npm_package_config_swaggerUrl -g typescript-axios"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment