-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcodegen.yml
46 lines (39 loc) · 1.12 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
overwrite: true
schema:
- "./packages/*/src/**/{gql,graph}/**/*.ts":
noRequire: true
- "!**/__generated__/*.ts"
generates:
./packages/api-graph/src/graph/__generated__/index.ts:
config:
overwrite: true
contextType: ../../context#Context
plugins:
- typescript
- typescript-resolvers
./schema.graphql:
plugins:
- schema-ast
config:
includeDirectives: true
./packages/configurator/src/renderer/gql/__generated__/introspection.json:
plugins:
- introspection
config:
module: es2015
./packages/configurator/src/renderer/gql/__generated__/schema.tsx:
config:
contextType: ../apollo#ApolloContext
immutableTypes: true
plugins:
- typescript
- typescript-resolvers
./packages/configurator/src/renderer/gql/__generated__/tag/:
documents:
- "./packages/configurator/{src,stories}/**/*.{ts,tsx}":
noRequire: true
- "!**/__generated__/*.ts"
preset: gql-tag-operations
presetConfig:
# define which module you want to import your gql function from
augmentedModuleName: "@apollo/client"