Skip to content

Commit 4935b24

Browse files
devversionkara
authored andcommitted
build: make app tasks optional (#3361)
1 parent 00de2d7 commit 4935b24

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tools/gulp/task_helpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ export function cleanTask(glob: string) {
135135
/** Build an task that depends on all application build tasks. */
136136
export function buildAppTask(appName: string) {
137137
const buildTasks = ['vendor', 'ts', 'scss', 'assets']
138-
.map(taskName => `:build:${appName}:${taskName}`);
138+
.map(taskName => `:build:${appName}:${taskName}`)
139+
.filter(taskName => gulp.hasTask(taskName));
139140

140141
return (done: () => void) => {
141142
gulpRunSequence(

tools/gulp/tasks/e2e.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ task(':build:e2eapp:vendor', vendorTask());
2525
/** Builds e2e app ts to js. */
2626
task(':build:e2eapp:ts', tsBuildTask(appDir));
2727

28-
/** No-op (needed by buildAppTask). */
29-
task(':build:e2eapp:scss', sassBuildTask(outDir, appDir));
30-
3128
/** Copies e2e app assets (html, css) to build output. */
3229
task(':build:e2eapp:assets', copyTask(appDir, outDir));
3330

0 commit comments

Comments
 (0)