-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodegen.yml
42 lines (42 loc) · 1.04 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
generates:
# Generate a types file
src/graphql/generated/types.ts:
schema:
- .mesh/schema.graphql
plugins:
- typescript-apollo-client-helpers
- add
config:
enumsAsTypes: true
content: '/* eslint-disable */'
# Generate a fragments.json
src/graphql/generated/fragments.json:
schema:
- .mesh/schema.graphql
plugins:
- fragment-matcher
# Generate .gql.ts files for each GraphQL file
.:
schema:
- .mesh/schema.graphql
documents:
- 'components/**/*.graphql'
- 'graphql/**/*.graphql'
plugins:
- 'graphql-codegen-relay-optimizer-plugin'
- typed-document-node
- typescript-operations
- add
preset: 'graphql-codegen-near-operation-file'
presetConfig:
extension: .gql.ts
baseTypesPath: ~graphql-mesh/.mesh
injectables: true
config:
skipTypename: true
namingConvention: 'keep'
dedupeOperationSuffix: true
arrayInputCoercion: false
content: /* eslint-disable */
watchConfig:
usePolling: false