Skip to content

Commit

Permalink
chore: enable runner to be rebuild with general watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
AtofStryker committed May 27, 2022
1 parent 0a6391f commit 32170b1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion scripts/gulp/gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { makePathMap } from './utils/makePathMap'
import { makePackage } from './tasks/gulpMakePackage'
import { exitAfterAll } from './tasks/gulpRegistry'
import { execSync } from 'child_process'
import { webpackRunner } from './tasks/gulpWebpack'
import { webpackRunner, webpackRunnerCT } from './tasks/gulpWebpack'
import { e2eTestScaffold, e2eTestScaffoldWatch } from './tasks/gulpE2ETestScaffold'
import dedent from 'dedent'

Expand Down Expand Up @@ -59,6 +59,7 @@ gulp.task(
'dev:watch',
gulp.parallel(
webpackRunner,
webpackRunnerCT,
gulp.series(
makePathMap,
// Before dev, fetch the latest "remote" schema from the Cypress dashboard
Expand Down Expand Up @@ -279,6 +280,7 @@ gulp.task(viteBuildApp)
gulp.task(viteBuildLaunchpad)
gulp.task(viteBuildAndWatchApp)
gulp.task(viteBuildAndWatchLaunchpad)
gulp.task(viteBuildAndWatchLaunchpad)

gulp.task(e2eTestScaffoldWatch)
gulp.task(e2eTestScaffold)
Expand Down
10 changes: 9 additions & 1 deletion scripts/gulp/tasks/gulpWebpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@ import semver from 'semver'

type Env = typeof process.env

export function webpackRunner () {
export function webpackRunnerCT () {
return runWebpack({
cwd: monorepoPaths.pkgRunnerCt,
prefix: 'webpack:runner:ct',
args: ['-w'],
})
}

export function webpackRunner () {
return runWebpack({
cwd: monorepoPaths.pkgRunner,
prefix: 'webpack:runner',
args: ['-w'],
})
Expand Down

0 comments on commit 32170b1

Please sign in to comment.