2020-06-21 23:12:04 +03:00
|
|
|
schema: '../api/graphql/schema/*.graphql'
|
2020-01-21 23:01:51 +03:00
|
|
|
overwrite: true
|
2020-02-04 01:08:26 +03:00
|
|
|
documents: src/**/*.graphql
|
2020-01-21 23:01:51 +03:00
|
|
|
generates:
|
2020-02-13 01:09:45 +03:00
|
|
|
./src/fragmentTypes.ts:
|
2020-01-21 23:01:51 +03:00
|
|
|
plugins:
|
2020-02-13 01:09:45 +03:00
|
|
|
- fragment-matcher
|
2020-01-21 23:01:51 +03:00
|
|
|
config:
|
|
|
|
module: es2015
|
2020-09-30 18:31:48 +03:00
|
|
|
apolloClientVersion: 3
|
2020-02-04 01:08:26 +03:00
|
|
|
./src/gqlTypes.ts:
|
|
|
|
plugins:
|
2020-02-13 01:09:45 +03:00
|
|
|
- typescript
|
2020-02-12 00:11:08 +03:00
|
|
|
./src/schema.json:
|
|
|
|
plugins:
|
2020-02-13 01:09:45 +03:00
|
|
|
- introspection
|
2020-02-04 01:08:26 +03:00
|
|
|
./src/:
|
|
|
|
plugins:
|
2020-09-30 18:31:48 +03:00
|
|
|
- add:
|
|
|
|
content: '/* eslint-disable @typescript-eslint/no-unused-vars, import/order */'
|
2020-02-13 01:09:45 +03:00
|
|
|
- typescript-operations
|
|
|
|
- typescript-react-apollo
|
2020-02-04 01:08:26 +03:00
|
|
|
preset: near-operation-file
|
|
|
|
presetConfig:
|
|
|
|
extension: .generated.tsx
|
|
|
|
baseTypesPath: gqlTypes.ts
|
|
|
|
config:
|
|
|
|
withComponent: false
|
|
|
|
withHOC: false
|
|
|
|
withHooks: true
|
|
|
|
|
|
|
|
hooks:
|
2020-02-12 00:11:08 +03:00
|
|
|
afterAllFileWrite:
|
2020-02-13 01:09:45 +03:00
|
|
|
- prettier --write
|