diff --git a/scripts/gulp/gulpfile.ts b/scripts/gulp/gulpfile.ts index a15bf70696..c34855ccb0 100644 --- a/scripts/gulp/gulpfile.ts +++ b/scripts/gulp/gulpfile.ts @@ -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, webpackRunnerCT } from './tasks/gulpWebpack' +import { webpackReporter, webpackRunner, webpackRunnerCT } from './tasks/gulpWebpack' import { e2eTestScaffold, e2eTestScaffoldWatch } from './tasks/gulpE2ETestScaffold' import dedent from 'dedent' @@ -58,6 +58,7 @@ gulp.task( gulp.task( 'dev:watch', gulp.parallel( + webpackReporter, webpackRunner, webpackRunnerCT, gulp.series( @@ -129,7 +130,6 @@ gulp.task('buildProd', viteBuildApp, viteBuildLaunchpad, ), - )) gulp.task( diff --git a/scripts/gulp/tasks/gulpWebpack.ts b/scripts/gulp/tasks/gulpWebpack.ts index 9a687d1727..6f4a0abb7a 100644 --- a/scripts/gulp/tasks/gulpWebpack.ts +++ b/scripts/gulp/tasks/gulpWebpack.ts @@ -7,6 +7,14 @@ import semver from 'semver' type Env = typeof process.env +export function webpackReporter () { + return runWebpack({ + cwd: monorepoPaths.pkgReporter, + prefix: 'webpack:reporter', + args: ['-w'], + }) +} + export function webpackRunnerCT () { return runWebpack({ cwd: monorepoPaths.pkgRunnerCt,