forked from dyne/zenpub-client
-
Notifications
You must be signed in to change notification settings - Fork 5
/
codegen.yml
35 lines (35 loc) · 893 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
schema: ${REACT_APP_GRAPHQL_ENDPOINT}
documents: src/**/!(*.client).graphql
overwrite: true
watch: false
hooks:
afterStart:
- node codegencleanup
generates:
src/graphql/types.generated.ts:
plugins:
- typescript
- fragment-matcher
- typescript-resolvers
src/graphql/schema.generated.json:
plugins:
- introspection
src/graphql/:
preset: near-operation-file
presetConfig:
extension: .generated.tsx
baseTypesPath: types.generated.ts
# folder: generated/
plugins:
- typescript-operations
- typescript-react-apollo
- ./src/util/apollo/operation/codegen-plugin.js
config:
exportFragmentSpreadSubTypes: true
preResolveTypes: false
avoidOptionals: false
reactApolloVersion: 3
withHooks: true
withHOC: false
withComponent: false
nonOptionalTypename: true