Repository navigation
Expand file tree
/
Copy pathcodegen.yml
More file actions
56 lines (56 loc) · 1.62 KB
/
Copy pathcodegen.yml
File metadata and controls
56 lines (56 loc) · 1.62 KB
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
47
48
49
50
51
52
53
54
55
56
schema: http://localhost:3999/graphql
overwrite: true
generates:
backend-schema.graphql:
plugins:
- add:
content: '# This file was generated based on "codegen.yml". Do not edit manually.'
- schema-ast
overwrite: true
./src/generated/backend.schema.json:
plugins:
- introspection
./src/generated/graphqlTypes.ts:
documents: ./src/apollo/**/*.{ts,graphql}
plugins:
- add:
content: '/* This file was generated based on "codegen.yml". Do not edit manually. */'
- add:
content: "/* eslint-disable */"
- typescript
- typescript-operations
- typed-document-node
config:
maybeValue: T
scalars:
Date: Date
DateTime: Date
Upload: File
PositiveInt: number
NonNegativeInt: number
URL: string
EmailAddress: string
ObjectID: string
namingConvention:
enumValues: keep
./src/generated/graphqlHooks.ts:
hooks:
afterOneFileWrite:
- node scripts/replaceCodegenOperationsDocumentNaming
documents: ./src/apollo/**/*.{ts,graphql}
plugins:
- add:
content: '/* This file was generated based on "codegen.yml". Do not edit manually. */'
- add:
content: "/* eslint-disable */"
- add:
content: import type * as Types from "./graphqlTypes";
- typescript-react-apollo
config:
withHooks: true
withHOC: false
withComponent: false
documentMode: external
documentVariableSuffix: Document
importDocumentNodeExternallyFrom: ./graphqlTypes
importOperationTypesFrom: Types