-
Notifications
You must be signed in to change notification settings - Fork 1
/
codegen.yml
50 lines (50 loc) · 1.32 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
48
49
50
overwrite: true
generates:
./libs/website/api/src/lib/graphql.ts:
schema: ${API_URL}/v1
documents: ./libs/website/api/src/lib/schemas/*.graphql
plugins:
- add:
content: '// THIS FILE IS AUTOGENERATED, EDIT WITH CAUTION'
- add:
content: "import {Node} from 'slate'"
- typescript
- typescript-operations
- typescript-react-apollo
config:
reactApolloVersion: 3
scalars:
VoteValue: number
Date: string
DateTime: string
Color: string
Slug: string
RichText: Node[]
Upload: File
withHooks: true
withHOC: false
withComponent: false
./libs/website/api-v2/src/lib/graphql.ts:
schema: ../wepublish/apps/api-example/schema-v2.graphql
documents: ./libs/website/api-v2/src/lib/schemas/*.graphql
plugins:
- add:
content: '// THIS FILE IS AUTOGENERATED'
- add:
content: "import {Node} from 'slate'"
- typescript
- typescript-operations
- typescript-react-apollo
config:
reactApolloVersion: 3
scalars:
VoteValue: number
Date: string
DateTime: string
Color: string
Slug: string
RichText: Node[]
Upload: File
withHooks: true
withHOC: false
withComponent: false