forked from saleor/saleor-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.yml
53 lines (53 loc) · 1.35 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
overwrite: true
schema: ./introspection.json
generates:
./src/graphql/fragmentTypes.generated.ts:
plugins:
- add:
content: /* eslint-disable */
- fragment-matcher
config:
minify: false
apolloClientVersion: 3
./src/graphql/typePolicies.generated.ts:
plugins:
- add:
content: /* eslint-disable */
- typescript-apollo-client-helpers
./src/graphql/types.generated.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.generated.ts:
documents:
- ./src/**/queries.ts
- ./src/**/mutations.ts
- ./src/**/fragments/*.ts
- ./src/searches/*.ts
preset: import-types
presetConfig:
typesPath: ./types.generated
config:
withHooks: true
apolloReactHooksImportFrom: "@saleor/hooks/graphql"
plugins:
- add:
content: /* eslint-disable */
- typescript-react-apollo