-
Notifications
You must be signed in to change notification settings - Fork 4
/
codegen.yml
46 lines (42 loc) · 1.08 KB
/
codegen.yml
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
overwrite: true
schema: http://localhost:4000/graphql
documents: "src/**/*.gql"
generates:
src/graphql/generated/schema.json:
plugins:
- "introspection"
config:
minify: true
src/graphql/generated/types.ts:
documents: "src/**/*.gql"
plugins:
- add:
content: '/* eslint-disable */'
- typescript
src/graphql/generated/fragment-matcher.json:
documents: "src/**/*.gql"
plugins:
- fragment-matcher
src/graphql/generated/apollo-helpers.ts:
documents: "src/**/*.gql"
plugins:
- add:
content: '/* eslint-disable */'
- typescript-apollo-client-helpers
src/:
preset: near-operation-file
documents: "src/**/*.gql"
presetConfig:
baseTypesPath: 'graphql/generated/types'
config:
reactApolloVersion: 3
addDocBlocks: true
pureMagicComment: true
nonOptionalTypename: true
useTypeImports: true
experimentalFragmentVariables: true
plugins:
- typescript-operations
- typescript-react-apollo
- add:
content: '/* eslint-disable */'