fork of hey-api/openapi-ts because I need some additional things
1<div align="center">
2 <img alt="Hey API logo" height="150" src="https://heyapi.dev/assets/.gen/logo-astronaut-300w.png" width="150">
3 <h1 align="center"><b>Vite Plugin</b></h1>
4 <p align="center">🚀 Vite plugin for <code>@hey-api/openapi-ts</code> codegen.</p>
5</div>
6
7## Dashboard
8
9Access your projects and OpenAPI specifications in the [Hey API Platform](https://app.heyapi.dev/).
10
11## Contributing
12
13Want to see your code in products used by millions?
14
15Start with our [Contributing](https://heyapi.dev/openapi-ts/community/contributing) guide and release your first feature.
16
17## Documentation
18
19Please visit our [website](https://heyapi.dev) for documentation, guides, migrating, and more.
20
21## Sponsors
22
23Help Hey API stay around for the long haul by becoming a [sponsor](https://github.com/sponsors/hey-api).
24
25<h3 align="center">Gold</h3>
26
27<table align="center" style="justify-content: center;align-items: center;display: flex;">
28 <tbody>
29 <tr>
30 <td align="center">
31 <p></p>
32 <p>
33 <a href="https://kutt.it/pkEZyc" target="_blank">
34 <picture height="50px">
35 <source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/assets/.gen/stainless-logo-wordmark-480w.jpeg">
36 <img alt="Stainless logo" height="50px" src="https://heyapi.dev/assets/.gen/stainless-logo-wordmark-480w.jpeg">
37 </picture>
38 </a>
39 <br/>
40 Best-in-class developer interfaces for your API.
41 <br/>
42 <a href="https://kutt.it/pkEZyc" style="text-decoration:none;" target="_blank">
43 stainless.com
44 </a>
45 </p>
46 <p></p>
47 </td>
48 <td align="center">
49 <p></p>
50 <p>
51 <a href="https://kutt.it/QM9Q2N" target="_blank">
52 <picture height="50px">
53 <source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/assets/opencode/logo-light.svg">
54 <img alt="Opencode logo" height="50px" src="https://heyapi.dev/assets/opencode/logo-dark.svg">
55 </picture>
56 </a>
57 <br/>
58 The open source coding agent.
59 <br/>
60 <a href="https://kutt.it/QM9Q2N" style="text-decoration:none;" target="_blank">
61 opencode.ai
62 </a>
63 </p>
64 <p></p>
65 </td>
66 </tr>
67 </tbody>
68</table>
69
70<h3 align="center">Silver</h3>
71
72<table align="center" style="justify-content: center;align-items: center;display: flex;">
73 <tbody>
74 <tr>
75 <td align="center">
76 <a href="https://kutt.it/skQUVd" target="_blank">
77 <picture height="40px">
78 <source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/assets/scalar/logo-light.svg">
79 <img alt="Scalar logo" height="40px" src="https://heyapi.dev/assets/scalar/logo-dark.svg">
80 </picture>
81 </a>
82 <br/>
83 <a href="https://kutt.it/skQUVd" style="text-decoration:none;" target="_blank">
84 scalar.com
85 </a>
86 </td>
87 <td align="center">
88 <a href="https://kutt.it/Dr9GuW" target="_blank">
89 <picture height="40px">
90 <source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/assets/fastapi/logo-light.svg">
91 <img alt="FastAPI logo" height="40px" src="https://heyapi.dev/assets/fastapi/logo-dark.svg">
92 </picture>
93 </a>
94 <br/>
95 <a href="https://kutt.it/Dr9GuW" style="text-decoration:none;" target="_blank">
96 fastapi.tiangolo.com
97 </a>
98 </td>
99 </tr>
100 </tbody>
101</table>
102
103<h3 align="center">Bronze</h3>
104
105<table align="center" style="justify-content: center;align-items: center;display: flex;">
106 <tbody>
107 <tr>
108 <td align="center">
109 <a href="https://kutt.it/YpaKsX" target="_blank">
110 <picture height="34px">
111 <source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/assets/.gen/kinde-logo-wordmark-dark-480w.webp">
112 <img alt="Kinde logo" height="34px" src="https://heyapi.dev/assets/.gen/kinde-logo-wordmark-480w.jpeg">
113 </picture>
114 </a>
115 </td>
116 <td align="center">
117 <a href="https://kutt.it/KkqSaw" target="_blank">
118 <picture height="34px">
119 <source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/assets/cella/logo-light.svg">
120 <img alt="Cella logo" height="34px" src="https://heyapi.dev/assets/cella/logo-dark.svg">
121 </picture>
122 </a>
123 </td>
124 </tr>
125 </tbody>
126</table>
127
128## Usage
129
130Add to `plugins` inside your Vite configuration.
131
132```ts
133import { heyApiPlugin } from '@hey-api/vite-plugin';
134
135export default defineConfig({
136 plugins: [
137 heyApiPlugin({
138 config: {
139 // optional configuration instead of using the configuration file
140 },
141 }),
142 ],
143});
144```