Created
June 14, 2020 07:40
-
-
Save yousifalraheem/72c68996d4f4e2fcf5c05f76a7a5c174 to your computer and use it in GitHub Desktop.
NPM Package script with cleaned up script using npm package variables for both Linux and Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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", | |
"generate:win": "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