git-bug/webui/codegen.yaml

33 lines
721 B
YAML
Raw Normal View History

schema: '../api/graphql/schema/*.graphql'
overwrite: true
documents: src/**/*.graphql
generates:
2020-02-13 01:09:45 +03:00
./src/fragmentTypes.ts:
plugins:
2020-02-13 01:09:45 +03:00
- fragment-matcher
config:
module: es2015
./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
./src/:
plugins:
2020-02-13 01:09:45 +03:00
- add: '/* eslint-disable @typescript-eslint/no-unused-vars, import/order */'
- typescript-operations
- typescript-react-apollo
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