diff --git a/.prettierignore b/.prettierignore index 307968a..627e482 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,6 @@ dist node_modules templates -coverage \ No newline at end of file +coverage + +*.md \ No newline at end of file diff --git a/README.md b/README.md index ddab7a5..d607fe9 100644 --- a/README.md +++ b/README.md @@ -51,10 +51,10 @@ Clone this repo and install dependencies using yarn install ``` -1. Run the codegen: +1. Run the codegen command to generate the source code for this SDK from the `sdk.json` OpenAPI specification file: ```sh - yarn gen-sdk # e.g. yarn gen-sdk 0.1.1-beta.0 + yarn gen-sdk ``` 2. Run all tests: diff --git a/build-utils/gen-sdk.sh b/build-utils/gen-sdk.sh index 85d8370..b8ef6ec 100644 --- a/build-utils/gen-sdk.sh +++ b/build-utils/gen-sdk.sh @@ -4,7 +4,7 @@ npx openapi-generator-cli generate -g typescript-axios \ -i sdk.json \ -o ./src/generated/ \ -p npmName=circle,supportsES6=true,modelPropertyNaming=original,apiPackage=apis,modelPackage=models \ --t ./templates/typescript-axios --additional-properties=npmVersion=$1,withSeparateModelsAndApi=true +-t ./templates/typescript-axios --additional-properties=withSeparateModelsAndApi=true npx ts-node build-utils/mustache-camelize.ts src/generated/index.ts > src/generated/index-temp.ts