-
Notifications
You must be signed in to change notification settings - Fork 4
/
codegen.yml
38 lines (38 loc) · 995 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
38
overwrite: true
schema:
- ./src/__tests__/schema.graphql
documents:
- ./src/graphql/fragments/**/!(*.generated).ts
- ./src/graphql/mutations/**/!(*.generated).ts
- ./src/graphql/queries/**/!(*.generated).ts
hooks:
afterAllFileWrite:
- prettier --write
generates:
./src/graphql/types.d.ts:
plugins:
- typescript
config:
constEnums: true
enumsAsConst: true
enumsAsTypes: true
immutableTypes: true
useImplementingTypes: true
./src/graphql:
preset: near-operation-file
presetConfig:
baseTypesPath: types.d.ts
extension: .generated.ts
config:
addDocBlocks: false
pureMagicComment: true
documentMode: external
importDocumentNodeExternallyFrom: near-operation-file
addOperationExport: true
vueCompositionApiImportFrom: vue
plugins:
- typescript-operations
- typescript-vue-apollo
./src/graphql/generated/graphql.schema.json:
plugins:
- 'introspection'