forked from Joystream/joystream
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodegen.yml
More file actions
32 lines (28 loc) · 738 Bytes
/
codegen.yml
File metadata and controls
32 lines (28 loc) · 738 Bytes
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
overwrite: true
schema: '../query-node/generated/graphql-server/generated/schema.graphql'
documents:
- './src/graphql/queries/*.graphql'
config:
scalars:
Date: Date
preResolveTypes: true # avoid using Pick
skipTypename: true # skip __typename field in typings unless it's part of the query
generates:
src/graphql/generated/schema.ts:
hooks:
afterOneFileWrite:
- prettier --write
- eslint --fix
plugins:
- typescript
src/graphql/generated/queries.ts:
preset: import-types
presetConfig:
typesPath: ./schema
hooks:
afterOneFileWrite:
- prettier --write
- eslint --fix
plugins:
- typescript-operations
- typescript-document-nodes