hey-api / openapi-ts

🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more. Support: @mrlubos
https://heyapi.dev
Other
1.39k stars 107 forks source link

feat: move everything into plugins #1201

Closed mrlubos closed 3 weeks ago

mrlubos commented 3 weeks ago

TODO:

stackblitz[bot] commented 3 weeks ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

changeset-bot[bot] commented 3 weeks ago

🦋 Changeset detected

Latest commit: 972a93a91a945cc9ead73c08bb0fa9ee120433ba

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

This PR includes changesets to release 2 packages | Name | Type | | ------------------- | ----- | | @hey-api/openapi-ts | Minor | | @hey-api/docs | 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

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hey-api-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 1:08pm
codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 89.91304% with 58 lines in your changes missing coverage. Please review.

Project coverage is 73.09%. Comparing base (245c37a) to head (972a93a). Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
.../src/plugins/@tanstack/query-core/plugin-legacy.ts 66.66% 7 Missing :warning:
packages/openapi-ts/src/utils/handlebars.ts 55.55% 4 Missing :warning:
packages/openapi-ts/src/generate/output.ts 94.44% 3 Missing :warning:
.../openapi-ts/src/plugins/@hey-api/schemas/config.ts 82.35% 3 Missing :warning:
.../openapi-ts/src/plugins/@hey-api/schemas/plugin.ts 86.36% 3 Missing :warning:
...openapi-ts/src/plugins/@hey-api/services/config.ts 85.71% 3 Missing :warning:
...openapi-ts/src/plugins/@hey-api/services/plugin.ts 75.00% 3 Missing :warning:
...api-ts/src/plugins/@hey-api/transformers/config.ts 82.35% 3 Missing :warning:
...es/openapi-ts/src/plugins/@hey-api/types/config.ts 83.33% 3 Missing :warning:
...es/openapi-ts/src/plugins/@hey-api/types/plugin.ts 81.25% 3 Missing :warning:
... and 11 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1201 +/- ## ========================================== - Coverage 73.14% 73.09% -0.05% ========================================== Files 126 125 -1 Lines 17839 17617 -222 Branches 1721 1715 -6 ========================================== - Hits 13049 12878 -171 + Misses 4787 4736 -51 Partials 3 3 ``` | [Flag](https://app.codecov.io/gh/hey-api/openapi-ts/pull/1201/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/hey-api/openapi-ts/pull/1201/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api) | `73.09% <89.91%> (-0.05%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hey-api#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

pkg-pr-new[bot] commented 3 weeks ago

Open in Stackblitz

pnpm add https://pkg.pr.new/@hey-api/client-axios@1201
pnpm add https://pkg.pr.new/@hey-api/openapi-ts@1201
pnpm add https://pkg.pr.new/@hey-api/client-fetch@1201

commit: 972a93a