From e7dfac205ff794e0792030cb7a7acb7ed409df30 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Tue, 13 Jun 2017 13:40:16 -0400 Subject: [PATCH] chore(gulp): add colors and formatting to the excluded components --- scripts/gulp/util.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/gulp/util.ts b/scripts/gulp/util.ts index 890fb61680..3091d17a7b 100644 --- a/scripts/gulp/util.ts +++ b/scripts/gulp/util.ts @@ -56,7 +56,7 @@ export function createTempTsConfig(includeGlob: string[], target: string, module config.compilerOptions.target = target; } config.include = includeGlob; - const componetsToExclude = [ + const componentsToExclude = [ 'badge', 'card', 'card-content', @@ -69,13 +69,14 @@ export function createTempTsConfig(includeGlob: string[], target: string, module 'gesture' ]; - config.exclude = componetsToExclude.map(cmp => path.join(PROJECT_ROOT, `src/components/${cmp}`) + `/*.ts`) + config.exclude = componentsToExclude.map(cmp => path.join(PROJECT_ROOT, `src/components/${cmp}`) + `/*.ts`) .concat([ path.join(PROJECT_ROOT, 'src/components/index.ts'), ]); - console.log('excluding core components from ng buld:'); - console.log(config.exclude); + console.log('\x1b[36m%s\x1b[0m', '\nExcluding the following core components from ng build:\n'); + console.log('\x1b[33m%s\x1b[0m', componentsToExclude.join(', ') + '\n'); + console.log('\x1b[36m%s\x1b[0m', 'Important: all web components should be included in the above list.\n'); if (overrideCompileOptions) { config.compilerOptions = Object.assign(config.compilerOptions, overrideCompileOptions);