Skip to content

Commit

Permalink
chore: gen sdk command cleanup (#56)
Browse files Browse the repository at this point in the history
* chore: prettier cmd ignore md files

* chore: rm version from gen-sdk command

* docs: add detail to codegen command descrip
  • Loading branch information
ashutosh-ukey authored Jan 10, 2023
1 parent 6484569 commit bfbb30e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
dist
node_modules
templates
coverage
coverage

*.md
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sdk-version> # e.g. yarn gen-sdk 0.1.1-beta.0
yarn gen-sdk
```

2. Run all tests:
Expand Down
2 changes: 1 addition & 1 deletion build-utils/gen-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bfbb30e

Please sign in to comment.