-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.yml
39 lines (36 loc) · 869 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
27
28
29
30
31
32
33
34
35
36
37
38
39
overwrite: true
schema: 'https://kitsu.io/api/graphql'
documents: '**/*.graphql'
hooks:
afterAllFileWrite:
- prettier --write
generates:
./graphql.schema.json:
plugins:
- introspection
App/gen/kitsu.ts:
plugins:
- typescript
- typescript-operations
- typescript-graphql-request
- fragment-matcher
config:
immutableTypes: true
scalars:
Map: 'Record<string, string>'
JSON: 'Record<string, unknown>'
Date: 'string'
ISO8601Date: 'Date'
ISO8601DateTime: 'Date'
App/gen/query.ts:
plugins:
- typescript-document-nodes
config:
namePrefix: 'gql'
immutableTypes: true
scalars:
Map: 'Record<string, string>'
JSON: 'Record<string, unknown>'
Date: 'string'
ISO8601Date: 'Date'
ISO8601DateTime: 'Date'