forked from antfu-collective/vitesse-nuxt3
-
Notifications
You must be signed in to change notification settings - Fork 2
/
codegen.yml
31 lines (31 loc) 路 896 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
schema: graphql/generated/schema.gql
documents: '**/*.gql'
# hooks:
# afterOneFileWrite:
# - eslint --fix
config:
defaultScalarType: never
useTypeImports: true
# Reference: https://github.com/bicouy0/nuxt3-urql/blob/0f9040955a42cdd6916f48665cdb475037b6b4e7/codegen.yml
generates:
graphql/generated/types.d.ts:
plugins:
- typescript
graphql/generated/ops:
preset: near-operation-file
presetConfig:
baseTypesPath: ../types.d.ts
extension: .ts
# folder: generated
plugins:
- typescript-operations
- typed-document-node
- typescript-vue-urql:
# Disable for we're using `typed-document-node` generated the typed DocumentNode
documentMode: external
# For Graphcache
# - typescript-urql-graphcache
# For Graphcache
# graphql/generated/introspection.ts:
# plugins:
# - urql-introspection