thunderhub/codegen.yml

29 lines
687 B
YAML
Raw Normal View History

2020-04-16 15:24:27 +02:00
overwrite: true
2021-12-07 22:16:40 -05:00
schema: 'http://localhost:3000/graphql'
documents: 'src/client/src/graphql/**/*.ts'
hooks:
afterAllFileWrite:
- prettier --write
- eslint --fix
2020-04-16 15:24:27 +02:00
generates:
2021-12-07 22:16:40 -05:00
src/client/src/graphql/fragmentTypes.json:
plugins:
- fragment-matcher
2021-12-07 22:16:40 -05:00
src/client/src/graphql/types.ts:
plugins:
- typescript
2021-12-07 22:16:40 -05:00
src/client/src/graphql/:
preset: near-operation-file
presetConfig:
baseTypesPath: types.ts
extension: .generated.tsx
folder: __generated__
2020-04-16 15:24:27 +02:00
config:
withComponent: false
withHOC: false
withHooks: true
2020-08-05 21:24:46 +02:00
reactApolloVersion: 3
2020-04-16 15:24:27 +02:00
plugins:
- 'typescript-operations'
- 'typescript-react-apollo'