2020-01-21 23:01:51 +03:00
|
|
|
schema: '../graphql/schema/*.graphql'
|
|
|
|
overwrite: true
|
2020-02-04 01:08:26 +03:00
|
|
|
documents: src/**/*.graphql
|
2020-01-21 23:01:51 +03:00
|
|
|
generates:
|
|
|
|
./src/fragmentTypes.js:
|
|
|
|
plugins:
|
|
|
|
- fragment-matcher
|
|
|
|
config:
|
|
|
|
module: es2015
|
2020-02-04 01:08:26 +03:00
|
|
|
./src/gqlTypes.ts:
|
|
|
|
plugins:
|
|
|
|
- typescript
|
|
|
|
./src/:
|
|
|
|
plugins:
|
|
|
|
- typescript-operations
|
|
|
|
- typescript-react-apollo
|
|
|
|
preset: near-operation-file
|
|
|
|
presetConfig:
|
|
|
|
extension: .generated.tsx
|
|
|
|
baseTypesPath: gqlTypes.ts
|
|
|
|
config:
|
|
|
|
withComponent: false
|
|
|
|
withHOC: false
|
|
|
|
withHooks: true
|
|
|
|
|
|
|
|
config:
|
|
|
|
documentMode: documentNode
|
|
|
|
|
|
|
|
hooks:
|
|
|
|
afterOneFileWrite:
|
|
|
|
- prettier --write
|