Skip to content

Commit f5839ea

Browse files
committed
fix(@angular-devkit/build-angular): add default value to progress option
(cherry picked from commit 51d6c3c)
1 parent 79ec417 commit f5839ea

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

packages/angular_devkit/build_angular/src/browser/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export function buildWebpackBrowser(
287287
// tslint:disable-next-line: no-big-function
288288
concatMap(async buildEvent => {
289289
const spinner = new Spinner();
290-
spinner.enabled = !!options.progress;
290+
spinner.enabled = options.progress !== false;
291291

292292
const { webpackStats: webpackRawStats, success, emittedFiles = [] } = buildEvent;
293293
if (!webpackRawStats) {

packages/angular_devkit/build_angular/src/browser/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@
185185
},
186186
"progress": {
187187
"type": "boolean",
188-
"description": "Log progress to the console while building."
188+
"description": "Log progress to the console while building.",
189+
"default": true
189190
},
190191
"i18nFile": {
191192
"type": "string",

packages/angular_devkit/build_angular/src/karma/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@
9898
},
9999
"progress": {
100100
"type": "boolean",
101-
"description": "Log progress to the console while building."
101+
"description": "Log progress to the console while building.",
102+
"default": true
102103
},
103104
"watch": {
104105
"type": "boolean",

packages/angular_devkit/build_angular/src/server/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@
117117
},
118118
"progress": {
119119
"type": "boolean",
120-
"description": "Log progress to the console while building."
120+
"description": "Log progress to the console while building.",
121+
"default": true
121122
},
122123
"i18nFile": {
123124
"type": "string",

0 commit comments

Comments
 (0)