Skip to content

Commit

Permalink
build: make app tasks optional (#3361)
Browse files Browse the repository at this point in the history
  • Loading branch information
devversion authored and kara committed Mar 1, 2017
1 parent 00de2d7 commit 4935b24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion tools/gulp/task_helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ export function cleanTask(glob: string) {
/** Build an task that depends on all application build tasks. */
export function buildAppTask(appName: string) {
const buildTasks = ['vendor', 'ts', 'scss', 'assets']
.map(taskName => `:build:${appName}:${taskName}`);
.map(taskName => `:build:${appName}:${taskName}`)
.filter(taskName => gulp.hasTask(taskName));

return (done: () => void) => {
gulpRunSequence(
Expand Down
3 changes: 0 additions & 3 deletions tools/gulp/tasks/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ task(':build:e2eapp:vendor', vendorTask());
/** Builds e2e app ts to js. */
task(':build:e2eapp:ts', tsBuildTask(appDir));

/** No-op (needed by buildAppTask). */
task(':build:e2eapp:scss', sassBuildTask(outDir, appDir));

/** Copies e2e app assets (html, css) to build output. */
task(':build:e2eapp:assets', copyTask(appDir, outDir));

Expand Down

0 comments on commit 4935b24

Please sign in to comment.