Skip to content

Commit

Permalink
feat(@angular-devkit/architect-cli): wait for last output of build
Browse files Browse the repository at this point in the history
This allows watching builds to work. They wont show logs though. Looking
into making a better UI for this tool.
  • Loading branch information
hansl authored and mgechev committed Feb 27, 2019
1 parent a90ba8e commit 03fc0e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/angular_devkit/architect_cli/bin/architect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { NodeJsSyncHost, createConsoleLogger } from '@angular-devkit/core/node';
import { existsSync, readFileSync } from 'fs';
import * as minimist from 'minimist';
import * as path from 'path';
import { last } from 'rxjs/operators';
import { MultiProgressBar } from '../src/progress';


Expand Down Expand Up @@ -147,7 +148,7 @@ async function _executeTarget(

// Wait for full completion of the builder.
try {
const result = await run.result;
const result = await run.output.pipe(last()).toPromise();

if (result.success) {
parentLogger.info(terminal.green('SUCCESS'));
Expand Down

0 comments on commit 03fc0e6

Please sign in to comment.