forked from hummingbird-me/kitsu-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.yml
47 lines (44 loc) · 1.02 KB
/
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
40
41
42
43
44
45
46
47
overwrite: true
schema: 'https://kitsu.io/api/graphql'
documents: 'src/**/*.gql'
hooks:
afterAllFileWrite:
- prettier --write
generates:
src/graphql/schema.json:
plugins:
- introspection
config:
includeScalars: true
includeEnums: true
includeInputs: true
src/graphql/types.ts:
plugins:
- typescript
config:
immutableTypes: true
scalars:
Map: 'Record<string, string>'
JSON: 'unknown'
Date: 'Date'
ISO8601Date: 'Date'
ISO8601DateTime: 'Date'
src/:
preset: near-operation-file
presetConfig:
extension: -gql.ts
baseTypesPath: graphql/types.ts
config:
documentMode: documentNodeImportFragments
skipTypename: true
dedupeOperationSuffix: true
dedupeFragments: true
scalars:
Map: 'Record<string, string>'
JSON: 'unknown'
Date: 'Date'
ISO8601Date: 'Date'
ISO8601DateTime: 'Date'
plugins:
- typescript-operations
- typescript-urql