2017-08-01 23:21:39 +02:00
|
|
|
import {BuildPackage, buildConfig} from 'material2-build-tools';
|
|
|
|
|
import {join} from 'path';
|
|
|
|
|
|
|
|
|
|
export const cdkPackage = new BuildPackage('cdk');
|
|
|
|
|
export const materialPackage = new BuildPackage('material', [cdkPackage]);
|
2017-12-19 16:45:54 -08:00
|
|
|
export const cdkExperimentalPackage = new BuildPackage('cdk-experimental', [materialPackage]);
|
2017-12-20 09:59:31 -08:00
|
|
|
export const materialExperimentalPackage = new BuildPackage('material-experimental',
|
|
|
|
|
[cdkExperimentalPackage]);
|
2017-09-29 00:30:38 +02:00
|
|
|
export const momentAdapterPackage = new BuildPackage('material-moment-adapter', [materialPackage]);
|
2017-10-23 22:19:51 +02:00
|
|
|
export const examplesPackage = new BuildPackage('material-examples', [momentAdapterPackage]);
|
2017-08-01 23:21:39 +02:00
|
|
|
|
2017-09-14 15:15:17 -07:00
|
|
|
// The material package re-exports its secondary entry-points at the root so that all of the
|
|
|
|
|
// components can still be imported through `@angular/material`.
|
|
|
|
|
materialPackage.exportsSecondaryEntryPointsAtRoot = true;
|
|
|
|
|
|
2017-08-01 23:21:39 +02:00
|
|
|
// To avoid refactoring of the project the material package will map to the source path `lib/`.
|
2017-09-14 15:15:17 -07:00
|
|
|
materialPackage.sourceDir = join(buildConfig.packagesDir, 'lib');
|
2017-09-29 00:40:16 +02:00
|
|
|
|
|
|
|
|
// Some CDK secondary entry-points include SCSS files that should be exposed individually at the
|
|
|
|
|
// release output root. This is different in the Material package because here a full SCSS bundle
|
|
|
|
|
// will be generated.
|
|
|
|
|
cdkPackage.copySecondaryEntryPointStylesToRoot = true;
|