-
Notifications
You must be signed in to change notification settings - Fork 25
/
codegen.yml
executable file
·45 lines (45 loc) · 1.57 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
overwrite: true
schema: "./servers/backend-server/generated-schema.graphql"
generates:
typings/graphql.d.ts:
schema:
- "packages-modules/counter/browser/src/apollo-server-n-client/**/*.graphql"
- packages-modules/counter/server/src/schema/**/*.graphql
documents: "packages-modules/counter/browser/src/**/*.gql"
plugins:
- typescript-graphql-files-modules
packages-modules/counter/browser/src/generated-models.ts:
schema:
- "packages-modules/counter/browser/src/apollo-server-n-client/**/*.graphql"
- packages-modules/counter/server/src/schema/**/*.graphql
documents: "packages-modules/counter/browser/src/**/*.gql"
config:
noNamespaces: true
withMutationFn: false
withHOC: false
withComponent: false
plugins:
- add:
content: /* tslint:disable */
- typescript
- typescript-operations
- typescript-resolvers
- typescript-react-apollo
packages-modules/counter/browser/src/apollo-server-n-client/generated-model.tsx:
schema:
- "packages-modules/counter/browser/src/apollo-server-n-client/**/*.graphql"
- packages-modules/counter/server/src/schema/**/*.graphql
documents: "packages-modules/counter/browser/src/**/*.gql"
config:
withMutationFn: false
withHOC: false
withComponent: true
withHooks: true
preset: import-types-preset
presetConfig:
typesPath: "../generated-models"
importTypesNamespace: SchemaTypes
plugins:
- add:
content: /* tslint:disable */
- typescript-react-apollo