From 4fa7238999ca1ae3a879e1afbc7753d853e78071 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Mon, 26 Feb 2024 08:53:08 +0100 Subject: [PATCH] codegen --- libs/remix-ui/git/src/types/codegen.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 libs/remix-ui/git/src/types/codegen.ts diff --git a/libs/remix-ui/git/src/types/codegen.ts b/libs/remix-ui/git/src/types/codegen.ts new file mode 100644 index 0000000000..f815d67ad5 --- /dev/null +++ b/libs/remix-ui/git/src/types/codegen.ts @@ -0,0 +1,20 @@ +import { CodegenConfig } from '@graphql-codegen/cli'; + +const config: CodegenConfig = { + schema: 'https://docs.github.com/public/schema.docs.graphql', + // this assumes that all your source files are in a top-level `src/` directory - you might need to adjust this to your file structure + documents: ['src/**/*.{ts,tsx}'], + generates: { + './libs/remix-ui/git/src/types/': { + preset: 'client', + plugins: [], + presetConfig: { + gqlTagName: 'gql', + } + } + }, + overwrite: true, + ignoreNoDocuments: true, +}; + +export default config; \ No newline at end of file