-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodegen.yml
57 lines (57 loc) · 1.66 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
47
48
49
50
51
52
53
54
55
56
57
overwrite: true
watch: false
schema: ./introspection.json
hooks:
afterAllFileWrite:
- prettier --write
generates:
./src/graphql/fragmentTypes.ts:
plugins:
- add:
content: /* eslint-disable */
- fragment-matcher
config:
minify: false
apolloClientVersion: 3
./src/graphql/typePolicies.ts:
plugins:
- add:
content: /* eslint-disable */
- typescript-apollo-client-helpers
./src/graphql/globalTypes.ts:
documents:
- ./src/**/queries.ts
- ./src/**/mutations.ts
- ./src/**/fragments/*.ts
- ./src/searches/*.ts
config:
nonOptionalTypename: true
avoidOptionals:
field: true
inputValue: false
object: false
defaultValue: false
namingConvention:
enumValues: change-case-all#upperCase
onlyOperationTypes: true
plugins:
- add:
content: /* eslint-disable */
- typescript
- typescript-operations
./src/graphql/hooks.ts:
documents:
- ./src/**/queries.ts
- ./src/**/mutations.ts
- ./src/**/fragments/*.ts
- ./src/searches/*.ts
preset: import-types
presetConfig:
typesPath: ./globalTypes
config:
withHooks: true
apolloReactHooksImportFrom: "@mzawadie/hooks/graphql"
plugins:
- add:
content: /* eslint-disable */
- typescript-react-apollo