@@ -44,6 +44,24 @@ config:
44
44
DateTime : string
45
45
JSON : any
46
46
generates :
47
+ ' ./packages/data-context/src/gen/all-operations.gen.ts ' :
48
+ config :
49
+ << : *documentFilters
50
+ flattenGeneratedTypes : true
51
+ schema : ' packages/graphql/schemas/schema.graphql'
52
+ documents :
53
+ - ' ./packages/frontend-shared/src/gql-components/**/*.vue'
54
+ - ' ./packages/app/src/**/*.vue'
55
+ - ' ./packages/launchpad/src/**/*.vue'
56
+ plugins :
57
+ - add :
58
+ content : ' /* eslint-disable */'
59
+ - ' typescript ' :
60
+ noExport : true
61
+ - ' typescript-operations ' :
62
+ noExport : true
63
+ - ' typed-document-node'
64
+
47
65
# ##
48
66
# Generates types for us to infer the correct "source types" when we mock out on the frontend
49
67
# This ensures we have proper type checking when we're using cy.mountFragment in component tests
@@ -78,11 +96,15 @@ generates:
78
96
# files for useQuery / useMutation, as well as types associated with the fragments
79
97
# ##
80
98
' ./packages/launchpad/src/generated/graphql.ts ' :
81
- documents : ' ./packages/launchpad/src/**/*.vue'
99
+ documents :
100
+ - ' ./packages/launchpad/src/**/*.vue'
101
+ - ' ./packages/frontend-shared/src/**/*.vue'
82
102
<< : *vueOperations
83
103
84
104
' ./packages/app/src/generated/graphql.ts ' :
85
- documents : ' ./packages/app/src/**/*.vue'
105
+ documents :
106
+ - ' ./packages/app/src/**/*.vue'
107
+ - ' ./packages/frontend-shared/src/**/*.vue'
86
108
<< : *vueOperations
87
109
88
110
' ./packages/frontend-shared/src/generated/graphql.ts ' :
@@ -94,11 +116,15 @@ generates:
94
116
# so we can actually use the document in cy.mountFragment
95
117
# ##
96
118
' ./packages/launchpad/src/generated/graphql-test.ts ' :
97
- documents : ' ./packages/launchpad/src/**/*.vue'
119
+ documents :
120
+ - ' ./packages/launchpad/src/**/*.vue'
121
+ - ' ./packages/frontend-shared/src/**/*.vue'
98
122
<< : *vueTesting
99
123
100
124
' ./packages/app/src/generated/graphql-test.ts ' :
101
- documents : ' ./packages/app/src/**/*.vue'
125
+ documents :
126
+ - ' ./packages/app/src/**/*.vue'
127
+ - ' ./packages/frontend-shared/src/**/*.vue'
102
128
<< : *vueTesting
103
129
104
130
' ./packages/frontend-shared/src/generated/graphql-test.ts ' :
0 commit comments