From d2cf3e155705a4a0b33066a24b97eeccd39d717f Mon Sep 17 00:00:00 2001 From: Hans Larsen Date: Thu, 27 Sep 2018 11:34:50 -0400 Subject: [PATCH 1/2] feat(@angular-devkit/build-angular): add progress option to xi18n Add progress option to xi18n. It is passed to the webpack builder. Fixes #11667. --- .../angular_devkit/build_angular/src/extract-i18n/index.ts | 2 ++ .../build_angular/src/extract-i18n/schema.json | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/packages/angular_devkit/build_angular/src/extract-i18n/index.ts b/packages/angular_devkit/build_angular/src/extract-i18n/index.ts index 72752838f18f..34d327fedf7e 100644 --- a/packages/angular_devkit/build_angular/src/extract-i18n/index.ts +++ b/packages/angular_devkit/build_angular/src/extract-i18n/index.ts @@ -38,6 +38,7 @@ export interface ExtractI18nBuilderOptions { i18nLocale: string; outputPath?: string; outFile?: string; + progress?: boolean; } export class ExtractI18nBuilder implements Builder { @@ -92,6 +93,7 @@ export class ExtractI18nBuilder implements Builder { i18nFormat: options.i18nFormat, i18nFile: outFile, aot: true, + progress: options.progress, assets: [], scripts: [], styles: [], diff --git a/packages/angular_devkit/build_angular/src/extract-i18n/schema.json b/packages/angular_devkit/build_angular/src/extract-i18n/schema.json index 00dae2cdcb87..574a453c7883 100644 --- a/packages/angular_devkit/build_angular/src/extract-i18n/schema.json +++ b/packages/angular_devkit/build_angular/src/extract-i18n/schema.json @@ -24,6 +24,11 @@ "type": "string", "description": "Specifies the source language of the application." }, + "progress": { + "type": "boolean", + "description": "Log progress to the console.", + "default": true + }, "outputPath": { "type": "string", "description": "Path where output will be placed." From 7d16fb3608b1c590267cc88b237eaeb9f7189bdd Mon Sep 17 00:00:00 2001 From: Hans Larsen Date: Thu, 27 Sep 2018 12:10:29 -0400 Subject: [PATCH 2/2] docs(@angular/cli): add progress to extractI18n workspace schema --- packages/angular/cli/lib/config/schema.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/angular/cli/lib/config/schema.json b/packages/angular/cli/lib/config/schema.json index c758f76f0a3b..cb898d3c7041 100644 --- a/packages/angular/cli/lib/config/schema.json +++ b/packages/angular/cli/lib/config/schema.json @@ -1101,6 +1101,11 @@ "type": "string", "description": "Specifies the source language of the application." }, + "progress": { + "type": "boolean", + "description": "Log progress to the console.", + "default": true + }, "outputPath": { "type": "string", "description": "Path where output will be placed."