-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcodegen.yml
More file actions
30 lines (30 loc) · 854 Bytes
/
Copy pathcodegen.yml
File metadata and controls
30 lines (30 loc) · 854 Bytes
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
overwrite: true
schema:
- ./node_modules/@octokit/graphql-schema/schema.graphql
- ./src/local-schema.graphql
config:
namingConvention:
enumValues: keep
preResolveTypes: true
skipTypename: true
content: "/* eslint-disable */\n\n // ⚠️⚠️⚠️⚠️⚠️\n // This file was automatically generated and should not be edited.\n // ⚠️⚠️⚠️⚠️⚠️\n"
generates:
src/generated/github.ts:
plugins:
- 'typescript'
- 'fragment-matcher'
src/generated/introspection.json:
plugins:
- 'introspection'
src/:
documents: src/**/*.gql.ts
presetConfig:
baseTypesPath: 'generated/github.ts'
preset: 'near-operation-file'
config:
documentNode: 'graphQLTag'
dedupeFragment: true
plugins:
- 'add'
- 'typescript-operations'
- 'typed-document-node'