forked from beeequeue/yuna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodegen.yml
40 lines (35 loc) · 849 Bytes
/
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
overwrite: true
schema:
- 'https://graphql.anilist.co'
- 'src/graphql/client-schema.graphqls'
documents:
- 'src/**/*.{graphql,ts}'
- '!**/*.d.ts'
config:
avoidOptionals: true
noNamespaces: true
hooks:
afterOneFileWrite:
- prettier --write
generates:
src/graphql/generated/types.ts:
plugins:
- add:
content: '/* THIS IS A GENERATED FILE */'
- add:
content: '/* eslint-disable */'
- typescript
- typescript-operations
- typescript-compatibility
config:
avoidOptionals: true
strict: true # compatibility only
src/graphql/generated/introspection-result.ts:
plugins:
- add:
content: '/* THIS IS A GENERATED FILE */'
- add:
content: '/* eslint-disable */'
- fragment-matcher
config:
apolloClientVersion: 2