aboutsummaryrefslogtreecommitdiff
path: root/src/main/webui/codegen.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webui/codegen.ts')
-rw-r--r--src/main/webui/codegen.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/webui/codegen.ts b/src/main/webui/codegen.ts
new file mode 100644
index 0000000..b8c1c10
--- /dev/null
+++ b/src/main/webui/codegen.ts
@@ -0,0 +1,15 @@
+import type { CodegenConfig } from "@graphql-codegen/cli";
+
+const config: CodegenConfig = {
+ schema: "http://localhost:8080/graphql/schema.graphql",
+ documents: "src/gql/*.ts",
+ generates: {
+ "./src/gql/conf/": {
+ overwrite: true,
+ preset: "client",
+ plugins: [],
+ },
+ },
+};
+
+export default config;