forked from commercetools/merchant-center-application-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.graphqlrc.yml
163 lines (163 loc) · 5.45 KB
/
.graphqlrc.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
projects:
mc:
schema:
- '${MC_API_URL}':
headers:
X-Graphql-Target: mc
documents: '**/*.mc.graphql'
extensions:
codegen:
generates:
schemas/mc.json:
plugins:
- introspection
'@types-extensions/graphql-mc.d.ts':
plugins:
- add: /* THIS IS A GENERATED FILE */
- add: /* eslint-disable import/no-duplicates */
- typescript-graphql-files-modules
packages/application-shell-connectors/src/types/generated/mc.ts:
config:
addUnderscoreToArgsType: true
avoidOptionals: true
maybeValue: T | undefined
typesPrefix: T
plugins:
- typescript
- typescript-operations
packages/application-shell/src/types/generated/mc.ts:
config:
addUnderscoreToArgsType: true
avoidOptionals: true
maybeValue: T | undefined
typesPrefix: T
plugins:
- typescript
- typescript-operations
hooks:
afterAllFileWrite:
- prettier --write
ctp:
schema:
- '${MC_API_URL}':
headers:
Cookie: mcAccessToken=${MC_ACCESS_TOKEN}
X-Graphql-Target: ctp
X-Project-Key: ${CTP_PROJECT_KEY}
documents: '**/*.ctp.graphql'
extensions:
codegen:
generates:
schemas/ctp.json:
plugins:
- introspection
'@types-extensions/graphql-ctp.d.ts':
schema: schemas/ctp.json
documents: packages/**/src/**/*.ctp.graphql
plugins:
- add: '/* THIS IS A GENERATED FILE */'
- add: '/* eslint-disable import/no-duplicates */'
- typescript-graphql-files-modules
packages/application-shell/src/types/generated/ctp.ts:
schema: schemas/ctp.json
documents: packages/**/src/**/*.ctp.graphql
plugins:
- typescript
- typescript-operations
config:
typesPrefix: T
addUnderscoreToArgsType: true
avoidOptionals: true
maybeValue: T | undefined
scalars:
Long: number
DateTime: string
Country: string
Locale: string
Date: string
Json: '{ [key: string]: unknown }'
Currency: string
KeyReferenceInput: string
SearchFilter: string
SearchSort: string
YearMonth: string
BigDecimal: string
Time: string
hooks:
afterAllFileWrite:
- prettier --write
settings:
schema:
- '${MC_API_URL}':
headers:
Cookie: mcAccessToken=${MC_ACCESS_TOKEN}
X-Graphql-Target: settings
documents: '**/*.settings.graphql'
extensions:
codegen:
generates:
schemas/settings.json:
plugins:
- introspection
'@types-extensions/graphql-settings.d.ts':
schema: schemas/settings.json
documents: packages/**/src/**/*.settings.graphql
plugins:
- add: '/* THIS IS A GENERATED FILE */'
- add: '/* eslint-disable import/no-duplicates */'
- typescript-graphql-files-modules
packages/application-shell/src/types/generated/settings.ts:
schema: schemas/settings.json
documents: packages/**/src/**/*.settings.graphql
plugins:
- typescript
- typescript-operations
config:
typesPrefix: T
addUnderscoreToArgsType: true
avoidOptionals: true
maybeValue: T | undefined
scalars:
DateTime: string
Json: '{ [key: string]: unknown }'
packages/application-shell-connectors/src/types/generated/settings.ts:
schema: schemas/settings.json
documents: packages/**/src/**/*.settings.graphql
plugins:
- typescript
- typescript-operations
config:
typesPrefix: T
addUnderscoreToArgsType: true
avoidOptionals: true
maybeValue: T | undefined
scalars:
DateTime: string
Json: '{ [key: string]: unknown }'
proxy:
schema: '${MC_PROXY_URL}'
documents: '**/*.proxy.graphql'
extensions:
codegen:
generates:
schemas/proxy.json:
plugins:
- introspection
'@types-extensions/graphql-proxy.d.ts':
schema: schemas/proxy.json
documents: packages/**/src/**/*.proxy.graphql
plugins:
- add: '/* THIS IS A GENERATED FILE */'
- add: '/* eslint-disable import/no-duplicates */'
- typescript-graphql-files-modules
packages/application-shell/src/types/generated/proxy.ts:
schema: schemas/proxy.json
documents: packages/**/src/**/*.proxy.graphql
plugins:
- typescript
- typescript-operations
config:
typesPrefix: T
addUnderscoreToArgsType: true
avoidOptionals: true
maybeValue: T | undefined