-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcodegen.yml
37 lines (36 loc) · 887 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
overwrite: true
schema:
${NEXT_PUBLIC_GITHUB_GRAPHQL_ENDPOINT_YML}:
headers:
Authorization: Bearer ${GITHUB_OAUTH_TOKEN_YML}
ID: ${GITHUB_CLIENT_ID_DEV_YML}
Secret: ${GITHUB_CLIENT_SECRET_DEV_YML}
documents: 'graphql/**/*.graphql'
generates:
graphql/fragment-matcher.ts:
plugins:
- fragment-matcher
config:
apolloClientVersion: 3
graphql/graphql.tsx:
plugins:
- typescript
- typescript-operations
- typescript-react-apollo:
reactApolloVersion: 3
config:
withHooks: true
reactApolloVersion: 3
graphql/schema/graphql.schema.graphql:
plugins:
- schema-ast
config:
commentDescriptions: true
graphql/introspection/graphql.schema.json:
plugins:
- introspection
config:
commentDescriptions: true
hooks:
afterAllFileWrite:
- prettier --write