-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcodegen.yml
More file actions
executable file
·53 lines (49 loc) · 1.39 KB
/
Copy pathcodegen.yml
File metadata and controls
executable file
·53 lines (49 loc) · 1.39 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
overwrite: true
schema: './backend/gqlSchemas/authier.graphql'
documents: ['web-extension/**/*.gql', 'shared/**/*.gql']
generates:
shared/generated/graphqlBaseTypes.ts:
plugins:
- typescript
- add:
content: 'export type Exact<T extends Record<string, unknown>> = { [K in keyof T]: T[K] }'
shared/generated:
config:
enumValues:
WebInputType: '@shared/generated/graphqlBaseTypes#WebInputType'
plugins:
- typescript-operations
- typescript-react-apollo
preset: near-operation-file
presetConfig:
extension: .codegen.tsx
baseTypesPath: ~@shared/generated/graphqlBaseTypes
shared/generated/graphqlSchemaFragments.ts:
plugins:
- fragment-matcher
- add:
content: '// @ts-nocheck THIS IS A GENERATED FILE, DO NOT EDIT'
# hooks:
# afterAllFileWrite: -npx prettier --write
config:
withHooks: true
withHOC: false
withComponent: false
withMutationFn: false
withMutationOptionsType: false
reactApolloVersion: 3
apolloReactCommonImportFrom: '@apollo/client/react'
apolloReactHooksImportFrom: '@apollo/client/react'
scalars:
JSON: unknown
UUID: string
EmailAddress: string
NonEmptyString: string
BigInt: number
EmailAddressWithTLD: string
NonNegativeFloat: number
NonNegativeInt: number
PositiveInt: number
DateTime: string
namingConvention:
enumValues: keep