-
Notifications
You must be signed in to change notification settings - Fork 0
/
graphql.config.ts
144 lines (142 loc) · 4.26 KB
/
graphql.config.ts
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
import type {Configuration} from '@quilted/graphql-tools/configuration';
const config = {
projects: {
default: {
schema: 'graphql/main/*schema.graphql',
documents: [
'app/**/*.graphql',
'packages/cli/source/commands/publish/**/*.graphql',
'packages/cli/source/commands/push/**/*.graphql',
'packages/cli/source/utilities/app/**/*.graphql',
'packages/cli/source/utilities/authentication/**/*.graphql',
],
exclude: [
'app/shared/clips/Clip/graphql/LocalClipQuery.graphql',
'app/shared/clips/graphql/LocalClipsExtensionsQuery.graphql',
'app/shared/clips/graphql/LocalClipQuery.graphql',
'app/features/Developer/Console/graphql/DeveloperConsoleQuery.graphql',
'app/server/**/*.graphql',
'**/*.schema.graphql',
],
extensions: {
quilt: {
customScalars: {
EpisodeSelector: {
package: '@watching/api',
},
EpisodeEndpointSelector: {
package: '@watching/api',
},
SeasonSelector: {
package: '@watching/api',
},
EpisodeRangeSelector: {
package: '@watching/api',
},
EpisodeSelectionSelector: {
package: '@watching/api',
},
},
schema: [
{
kind: 'definitions',
outputPath: 'app/server/graphql/schema.ts',
},
{kind: 'inputTypes', outputPath: 'app/graphql/types.d.ts'},
{kind: 'definitions', outputPath: 'app/graphql/schema.ts'},
],
},
},
},
cli: {
schema: 'packages/cli/source/commands/develop/schema.graphql',
documents: [
'app/shared/clips/Clip/graphql/LocalClipQuery.graphql',
'app/shared/clips/graphql/LocalClipQuery.graphql',
'app/shared/clips/graphql/LocalClipsExtensionsQuery.graphql',
'app/features/Developer/Console/graphql/DeveloperConsoleQuery.graphql',
],
extensions: {
quilt: {
schema: [
{
kind: 'definitions',
outputPath: 'packages/cli/source/commands/develop/schema.ts',
},
{kind: 'inputTypes', outputPath: 'app/graphql/types/cli.d.ts'},
],
},
},
},
clipsShared: {
schema: 'graphql/clips/Shared.schema.graphql',
extensions: {
quilt: {
schema: [
{
kind: 'definitions',
outputPath: 'packages/clips/source/graphql/Shared.ts',
},
{
kind: 'graphql',
outputPath: 'packages/clips/graphql/Shared.schema.graphql',
},
],
},
},
},
clipsSeriesDetails: {
schema: 'graphql/clips/SeriesDetails.schema.graphql',
documents: ['packages/cli/templates/SeriesAccessory/**/*.graphql'],
extensions: {
quilt: {
schema: [
{
kind: 'definitions',
outputPath: 'packages/clips/source/graphql/SeriesDetails.ts',
},
{
kind: 'graphql',
outputPath: 'packages/clips/graphql/SeriesDetails.schema.graphql',
},
],
},
},
},
clipsWatchThroughDetails: {
schema: 'graphql/clips/WatchThroughDetails.schema.graphql',
documents: ['packages/cli/templates/WatchThroughAccessory/**/*.graphql'],
extensions: {
quilt: {
schema: [
{
kind: 'definitions',
outputPath:
'packages/clips/source/graphql/WatchThroughDetails.ts',
},
{
kind: 'graphql',
outputPath:
'packages/clips/graphql/WatchThroughDetails.schema.graphql',
},
],
},
},
},
github: {
schema: 'graphql/github/schema.graphql',
documents: 'app/server/auth/github/**/*.graphql',
extensions: {
quilt: {
schema: [
{
kind: 'inputTypes',
outputPath: 'app/server/auth/github/graphql/schema.d.ts',
},
],
},
},
},
},
} satisfies Configuration;
export default config;