forked from aave/interface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.yml
64 lines (63 loc) · 1.9 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
overwrite: true
hooks:
afterAllFileWrite:
- prettier --write
watch: true
config:
withHOC: false
withComponent: false
withMutationFn: false
withHooks: true
reactApolloVersion: 3
apolloReactHooksImportFrom: '@apollo/client'
apolloReactCommonImportFrom: '@apollo/client'
generates:
# src/libs/pool-data-provider/graphql/index.tsx:
# schema:
# - https://api.thegraph.com/subgraphs/name/aave/aave-v2-matic
# documents:
# - ./src/libs/pool-data-provider/graphql/*.graphql
# plugins:
# - 'typescript'
# - 'typescript-operations'
# - 'typescript-react-apollo'
# src/libs/pool-data-provider/graphql-v3/index.tsx:
# schema:
# - https://api.thegraph.com/subgraphs/name/aave/protocol-v3-arbitrum-rinkeby
# documents:
# - ./src/libs/pool-data-provider/graphql-v3/*.graphql
# plugins:
# - 'typescript'
# - 'typescript-operations'
# - 'typescript-react-apollo'
# src/libs/governance-provider/graphql/index.tsx:
# schema:
# - https://api.thegraph.com/subgraphs/name/aave/governance-v2-kovan
# documents:
# - ./src/libs/governance-provider/graphql/*.graphql
# plugins:
# - 'typescript'
# - 'typescript-operations'
# - 'typescript-react-apollo'
src/hooks/app-data-provider/graphql/hooks.tsx:
schema:
- https://cache-api-1.aave.com/graphql
documents:
- ./src/hooks/app-data-provider/graphql/*.graphql
plugins:
- add:
content: '/* eslint-disable */'
- 'typescript'
- 'typescript-operations'
- 'typescript-react-apollo'
src/hooks/stake-data-provider/graphql/hooks.tsx:
schema:
- https://cache-api-1.aave.com/graphql
documents:
- ./src/hooks/stake-data-provider/graphql/*.graphql
plugins:
- add:
content: '/* eslint-disable */'
- 'typescript'
- 'typescript-operations'
- 'typescript-react-apollo'