forked from chrisdoc/hevy-mcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkubb.config.ts
More file actions
48 lines (47 loc) · 840 Bytes
/
kubb.config.ts
File metadata and controls
48 lines (47 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { defineConfig } from "@kubb/core";
import { pluginClient } from "@kubb/plugin-client";
import { pluginFaker } from "@kubb/plugin-faker";
import { pluginOas } from "@kubb/plugin-oas";
import { pluginTs } from "@kubb/plugin-ts";
import { pluginZod } from "@kubb/plugin-zod";
export default defineConfig({
root: ".",
input: {
path: "./openapi-spec.json",
},
output: {
path: "./src/generated",
clean: true,
},
hooks: {
done: ["npm run check"],
},
plugins: [
pluginOas({
output: {
path: "./client",
},
}),
pluginTs({
output: {
path: "./client/types",
},
}),
pluginClient({
output: {
path: "./client/api",
},
client: "axios",
}),
pluginZod({
output: {
path: "./client/schemas",
},
}),
pluginFaker({
output: {
path: "./client/mocks",
},
}),
],
});