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" width="336px">
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" width="336px">
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 <tr>
68 <td align="center" width="336px">
69 <p></p>
70 <p>
71 <a href="https://kutt.it/6vrYy9" target="_blank">
72 <picture height="50px">
73 <source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/assets/mintlify/logo-light.svg">
74 <img alt="Mintlify logo" height="50px" src="https://heyapi.dev/assets/mintlify/logo-dark.svg">
75 </picture>
76 </a>
77 <br/>
78 The intelligent knowledge platform.
79 <br/>
80 <a href="https://kutt.it/6vrYy9" style="text-decoration:none;" target="_blank">
81 mintlify.com
82 </a>
83 </p>
84 <p></p>
85 </td>
86 </tr>
87 </tbody>
88</table>
89
90<h3 align="center">Silver</h3>
91
92<table align="center" style="justify-content: center;align-items: center;display: flex;">
93 <tbody>
94 <tr>
95 <td align="center" width="172px">
96 <a href="https://kutt.it/skQUVd" target="_blank">
97 <picture height="40px">
98 <source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/assets/scalar/logo-light.svg">
99 <img alt="Scalar logo" height="40px" src="https://heyapi.dev/assets/scalar/logo-dark.svg">
100 </picture>
101 </a>
102 <br/>
103 <a href="https://kutt.it/skQUVd" style="text-decoration:none;" target="_blank">
104 scalar.com
105 </a>
106 </td>
107 <td align="center" width="172px">
108 <a href="https://kutt.it/Dr9GuW" target="_blank">
109 <picture height="40px">
110 <source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/assets/fastapi/logo-light.svg">
111 <img alt="FastAPI logo" height="40px" src="https://heyapi.dev/assets/fastapi/logo-dark.svg">
112 </picture>
113 </a>
114 <br/>
115 <a href="https://kutt.it/Dr9GuW" style="text-decoration:none;" target="_blank">
116 fastapi.tiangolo.com
117 </a>
118 </td>
119 </tr>
120 </tbody>
121</table>
122
123<h3 align="center">Bronze</h3>
124
125<table align="center" style="justify-content: center;align-items: center;display: flex;">
126 <tbody>
127 <tr>
128 <td align="center" width="136px">
129 <a href="https://kutt.it/YpaKsX" target="_blank">
130 <picture height="34px">
131 <source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/assets/.gen/kinde-logo-wordmark-dark-480w.webp">
132 <img alt="Kinde logo" height="34px" src="https://heyapi.dev/assets/.gen/kinde-logo-wordmark-480w.jpeg">
133 </picture>
134 </a>
135 </td>
136 <td align="center" width="136px">
137 <a href="https://kutt.it/KkqSaw" target="_blank">
138 <picture height="34px">
139 <source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/assets/cella/logo-light.svg">
140 <img alt="Cella logo" height="34px" src="https://heyapi.dev/assets/cella/logo-dark.svg">
141 </picture>
142 </a>
143 </td>
144 </tr>
145 </tbody>
146</table>
147
148## Usage
149
150Add to `plugins` inside your Vite configuration.
151
152```ts
153import { heyApiPlugin } from '@hey-api/vite-plugin';
154
155export default defineConfig({
156 plugins: [
157 heyApiPlugin({
158 config: {
159 // optional configuration instead of using the configuration file
160 },
161 }),
162 ],
163});
164```