-
Notifications
You must be signed in to change notification settings - Fork 27
/
codegen.mc.yml
49 lines (49 loc) · 1.36 KB
/
codegen.mc.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
schema:
- '${MC_API_URL}/graphql':
headers:
X-Graphql-Target: mc
documents: 'packages/**/*.mc.graphql'
extensions:
codegen:
generates:
schemas/mc.json:
plugins:
- introspection
'@types-extensions/graphql-mc/index.d.ts':
plugins:
- add:
content: /* THIS IS A GENERATED FILE */
- add:
content: /* eslint-disable import/no-duplicates */
- typescript-graphql-files-modules
packages/application-shell-connectors/src/types/generated/mc.ts:
plugins:
- typescript
- typescript-operations
config:
addUnderscoreToArgsType: true
typesPrefix: T
packages/application-shell/src/types/generated/mc.ts:
plugins:
- typescript
- typescript-operations
config:
addUnderscoreToArgsType: true
typesPrefix: T
packages/permissions/src/types/generated/mc.ts:
plugins:
- typescript
- typescript-operations
config:
addUnderscoreToArgsType: true
typesPrefix: T
test-data/types/generated/mc.ts:
plugins:
- typescript
- typescript-operations
config:
addUnderscoreToArgsType: true
typesPrefix: T
hooks:
afterAllFileWrite:
- prettier --write