John Joyce 550cdc51ee
feat(React Incubation): React Playground Proof of Concept (#2059)
Co-authored-by: John Joyce <jjoyce0510@gmail.com>
2021-01-17 12:54:49 -08:00

25 lines
644 B
YAML

overwrite: true
schema: './datahub-frontend.graphql' # TEMPORARY: This should live in `../datahub-frontend/`
config:
scalars:
Long: number
documents:
- 'src/**/*.graphql'
generates:
src/types.generated.ts:
plugins:
- 'typescript'
src/:
preset: near-operation-file
presetConfig:
extension: '.generated.ts'
baseTypesPath: types.generated.ts
plugins:
- 'typescript-operations'
- 'typescript-react-apollo'
- add:
content: '/* eslint-disable */'
hooks:
afterAllFileWrite:
- prettier --write