-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodegen.yml
32 lines (29 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
generates:
./src/graphql/api-public/schema.graphql:
schema: ${PUBLIC_API_ENDPOINT:./src/graphql/api-public/schema.graphql}
plugins:
- 'schema-ast'
config:
includeDirectives: true
./src/graphql/api-public/codegen/graphql-request.ts:
schema: ${PUBLIC_API_ENDPOINT:./src/graphql/api-public/schema.graphql}
documents:
- 'src/graphql/api-public/graphql-request/*.graphql'
plugins:
- 'typescript'
- 'typescript-operations'
- 'typescript-graphql-request'
./src/graphql/api-authenticated/schema.graphql:
schema: ${AUTHENTICATED_API_ENDPOINT:./src/graphql/api-authenticated/schema.graphql}
plugins:
- 'schema-ast'
config:
includeDirectives: true
./src/graphql/api-authenticated/codegen/apollo.ts:
schema: ${AUTHENTICATED_API_ENDPOINT:./src/graphql/api-authenticated/schema.graphql}
documents:
- 'src/graphql/api-authenticated/apollo/*.graphql'
plugins:
- 'typescript'
- 'typescript-operations'
- 'typescript-react-apollo'