-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathgraphql-codegen.yml
42 lines (42 loc) · 1.24 KB
/
graphql-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
overwrite: true
schema: web/graphql/schema/index.ts
documents: "web/**/*.graphql"
require:
- ts-node/register
generates:
web/graphql/introspection-result.generated.ts:
plugins:
- add: |
// eslint-disable
// ⚠️ DO NOT EDIT ⚠️
// This file is automatically generated, run yarn run graphql:codegen to update
- "fragment-matcher"
web/graphql/schema-types.generated.ts:
plugins:
- typescript
config:
immutableTypes: false
web/:
preset: near-operation-file
presetConfig:
baseTypesPath: "graphql/schema-types.generated.ts"
extension: ".generated.tsx"
plugins:
- add: |
// eslint-disable
// ⚠️ DO NOT EDIT ⚠️
// This file is automatically generated, run yarn run graphql:codegen to update
- "typescript-operations"
- "typescript-react-apollo"
config:
immutableTypes: false
withHOC: false
withComponent: true
withHooks: false
web/graphql/types.generated.d.ts:
plugins:
- add: |
// eslint-disable
// ⚠️ DO NOT EDIT ⚠️
// This file is automatically generated, run yarn run graphql:codegen to update
- "typescript-graphql-files-modules"