mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(gulp): add colors and formatting to the excluded components
This commit is contained in:
@ -56,7 +56,7 @@ export function createTempTsConfig(includeGlob: string[], target: string, module
|
|||||||
config.compilerOptions.target = target;
|
config.compilerOptions.target = target;
|
||||||
}
|
}
|
||||||
config.include = includeGlob;
|
config.include = includeGlob;
|
||||||
const componetsToExclude = [
|
const componentsToExclude = [
|
||||||
'badge',
|
'badge',
|
||||||
'card',
|
'card',
|
||||||
'card-content',
|
'card-content',
|
||||||
@ -69,13 +69,14 @@ export function createTempTsConfig(includeGlob: string[], target: string, module
|
|||||||
'gesture'
|
'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([
|
.concat([
|
||||||
path.join(PROJECT_ROOT, 'src/components/index.ts'),
|
path.join(PROJECT_ROOT, 'src/components/index.ts'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
console.log('excluding core components from ng buld:');
|
console.log('\x1b[36m%s\x1b[0m', '\nExcluding the following core components from ng build:\n');
|
||||||
console.log(config.exclude);
|
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) {
|
if (overrideCompileOptions) {
|
||||||
config.compilerOptions = Object.assign(config.compilerOptions, overrideCompileOptions);
|
config.compilerOptions = Object.assign(config.compilerOptions, overrideCompileOptions);
|
||||||
|
Reference in New Issue
Block a user