mirror of
https://github.com/apotdevin/thunderhub.git
synced 2024-11-19 09:50:03 +01:00
29 lines
687 B
YAML
29 lines
687 B
YAML
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'
|