-
-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathcodegen.yml
More file actions
28 lines (28 loc) · 687 Bytes
/
codegen.yml
File metadata and controls
28 lines (28 loc) · 687 Bytes
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
overwrite: true
schema: 'http://localhost:3000/graphql'
documents: 'src/client/src/graphql/**/*.ts'
hooks:
afterAllFileWrite:
- prettier --write
- eslint --fix
generates:
src/client/src/graphql/fragmentTypes.json:
plugins:
- fragment-matcher
src/client/src/graphql/types.ts:
plugins:
- typescript
src/client/src/graphql/:
preset: near-operation-file
presetConfig:
baseTypesPath: types.ts
extension: .generated.tsx
folder: __generated__
config:
withComponent: false
withHOC: false
withHooks: true
reactApolloVersion: 3
plugins:
- 'typescript-operations'
- 'typescript-react-apollo'