@@ -11,7 +11,7 @@ import gulp from 'gulp'
11
11
import { autobarrelWatcher } from './tasks/gulpAutobarrel'
12
12
import { startCypressWatch , openCypressLaunchpad , openCypressApp , runCypressLaunchpad , wrapRunWithExit , runCypressApp , killExistingCypress } from './tasks/gulpCypress'
13
13
import { graphqlCodegen , graphqlCodegenWatch , nexusCodegen , nexusCodegenWatch , generateFrontendSchema , syncRemoteGraphQL } from './tasks/gulpGraphql'
14
- import { viteApp , viteCleanApp , viteCleanLaunchpad , viteLaunchpad , viteBuildApp , viteBuildAndWatchApp , viteBuildLaunchpad , viteBuildAndWatchLaunchpad } from './tasks/gulpVite'
14
+ import { viteApp , viteCleanApp , viteCleanLaunchpad , viteLaunchpad , viteBuildApp , viteBuildAndWatchApp , viteBuildLaunchpad , viteBuildAndWatchLaunchpad , symlinkViteProjects } from './tasks/gulpVite'
15
15
import { checkTs } from './tasks/gulpTsc'
16
16
import { makePathMap } from './utils/makePathMap'
17
17
import { makePackage } from './tasks/gulpMakePackage'
@@ -135,6 +135,18 @@ gulp.task(
135
135
) ,
136
136
)
137
137
138
+ gulp . task ( 'watchForE2E' , gulp . series (
139
+ 'codegen' ,
140
+ gulp . parallel (
141
+ gulp . series (
142
+ viteBuildAndWatchLaunchpad ,
143
+ viteBuildAndWatchApp ,
144
+ ) ,
145
+ webpackRunner ,
146
+ ) ,
147
+ symlinkViteProjects ,
148
+ ) )
149
+
138
150
/**------------------------------------------------------------------------
139
151
* Launchpad Testing
140
152
* This task builds and hosts the launchpad as if it was a static website.
@@ -182,6 +194,8 @@ const cyOpenLaunchpad = gulp.series(
182
194
viteBuildApp ,
183
195
) ,
184
196
197
+ symlinkViteProjects ,
198
+
185
199
// 2. Start the REAL (dev) Cypress App, which will launch in open mode.
186
200
openCypressLaunchpad ,
187
201
)
@@ -198,6 +212,8 @@ const cyOpenApp = gulp.series(
198
212
webpackRunner ,
199
213
) ,
200
214
215
+ symlinkViteProjects ,
216
+
201
217
// 2. Start the REAL (dev) Cypress App, which will launch in open mode.
202
218
openCypressApp ,
203
219
)
@@ -244,6 +260,7 @@ gulp.task(makePackage)
244
260
* here for debugging, e.g. `yarn gulp syncRemoteGraphQL`
245
261
*------------------------------------------------------------------------**/
246
262
263
+ gulp . task ( symlinkViteProjects )
247
264
gulp . task ( syncRemoteGraphQL )
248
265
gulp . task ( generateFrontendSchema )
249
266
gulp . task ( makePathMap )
0 commit comments