Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): add default value to progress option
Browse files Browse the repository at this point in the history
(cherry picked from commit 51d6c3c)
  • Loading branch information
alan-agius4 committed Nov 5, 2020
1 parent 79ec417 commit f5839ea
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/angular_devkit/build_angular/src/browser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export function buildWebpackBrowser(
// tslint:disable-next-line: no-big-function
concatMap(async buildEvent => {
const spinner = new Spinner();
spinner.enabled = !!options.progress;
spinner.enabled = options.progress !== false;

const { webpackStats: webpackRawStats, success, emittedFiles = [] } = buildEvent;
if (!webpackRawStats) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@
},
"progress": {
"type": "boolean",
"description": "Log progress to the console while building."
"description": "Log progress to the console while building.",
"default": true
},
"i18nFile": {
"type": "string",
Expand Down
3 changes: 2 additions & 1 deletion packages/angular_devkit/build_angular/src/karma/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@
},
"progress": {
"type": "boolean",
"description": "Log progress to the console while building."
"description": "Log progress to the console while building.",
"default": true
},
"watch": {
"type": "boolean",
Expand Down
3 changes: 2 additions & 1 deletion packages/angular_devkit/build_angular/src/server/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@
},
"progress": {
"type": "boolean",
"description": "Log progress to the console while building."
"description": "Log progress to the console while building.",
"default": true
},
"i18nFile": {
"type": "string",
Expand Down

0 comments on commit f5839ea

Please sign in to comment.