-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcodegen.yml
executable file
·40 lines (36 loc) · 966 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
32
33
34
35
36
37
38
39
40
overwrite: true
schema: './backend/gqlSchemas/authier.graphql'
documents: ['mobile-app/**/*.gql', 'web-extension/**/*.gql', 'shared/**/*.gql']
generates:
shared/generated/graphqlBaseTypes.ts:
plugins:
- typescript
shared/generated:
plugins:
- typescript-operations
- typescript-react-apollo
preset: near-operation-file
presetConfig:
extension: .codegen.tsx
baseTypesPath: 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
apolloClientVersion: 3
reactApolloVersion: 3
scalars:
EmailAddressWithTLD: string
NonNegativeFloat: number
NonNegativeInt: number
PositiveInt: number
DateTime: string
namingConvention:
enumValues: keep