-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodegen.yml
26 lines (25 loc) · 905 Bytes
/
codegen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
overwrite: true
schema: 'http://localhost:3000/graphql'
documents: 'src/**/*.gql'
generates:
src/generated/graphql.tsx:
hooks:
afterOneFileWrite:
- npx prettier --write
plugins:
- add: '// tslint:disable: no-any'
- add: '// tslint:disable: max-line-length'
- add: 'import { TranslationItemKey } from "../shared/localisation/translations";'
- add: 'import { FontAwesomeIconDefinition } from "fontawesome-webfont-react-fela";'
- 'typescript'
- 'typescript-operations'
- 'typescript-resolvers'
# - 'typescript-react-apollo'
config:
scalars:
Date: Date
MLOKey: TranslationItemKey
FontAwesomeIcon: FontAwesomeIconDefinition
./graphql.schema.json:
plugins:
- 'introspection'