pmcelhaney / counterfact

OpenAPI / Swagger to TypeScript generator and mock server
MIT License
83 stars 12 forks source link

feat(counterfact): Add command new line options #886

Closed dethell closed 3 weeks ago

dethell commented 1 month ago

Updates the start script, server files and typescript-generator to add new command-line arguments:

This PR also adds the shorthand equivalents of the different options so that they can be used in a combined manner, e.g., for only watch + serve + repl:

npx counterfact mySpec.yml output-dir -wsr

These changes allow new use cases such as:

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: bc90107e5ba19f64ca0abfb6eab8b2d1df9e014c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ----------- | ----- | | counterfact | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

coveralls commented 4 weeks ago

Pull Request Test Coverage Report for Build 9015841090

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/typescript-generator/code-generator.ts 55 60 91.67%
src/server/app.ts 0 25 0.0%
<!-- Total: 88 118 74.58% -->
Files with Coverage Reduction New Missed Lines %
src/typescript-generator/repository.js 4 94.14%
<!-- Total: 4 -->
Totals Coverage Status
Change from base Build 8994262780: -0.3%
Covered Lines: 3089
Relevant Lines: 3594

💛 - Coveralls