chore(gulp): add colors and formatting to the excluded components

This commit is contained in:
Brandy Carney
2017-06-13 13:40:16 -04:00
parent 89e1b8c7b9
commit e7dfac205f

View File

@ -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);