-
Notifications
You must be signed in to change notification settings - Fork 0
/
statsCodegen.yml
38 lines (38 loc) · 973 Bytes
/
statsCodegen.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
overwrite: true
schema: ['https://metrics.beta.deepsquare.run/graphql']
documents: ['src/graphql/external/statsClient/**/*.graphql']
config:
strictScalars: true
declarationKind: type
scalars:
BigNumber: string
DateTime: string
BigInt: string
Time: string
skipTypename: true
namingConvention:
enumValues: upper-case#upperCase
useTypeImports: true
# Apollo
withRefetchFn: true
pureMagicComment: true
generates:
src/graphql/external/statsClient/generated/Types.ts:
plugins:
- typescript
src/graphql/external/statsClient:
preset: near-operation-file
presetConfig:
extension: .generated.ts
baseTypesPath: generated/Types.ts
folder: ../generated
plugins:
- typescript-operations
- typescript-react-apollo
src/graphql/external/statsClient/generated/introspection.json:
plugins:
- introspection
config: { minify: true }
hooks:
afterAllFileWrite:
- prettier --write