mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
23 lines
1.2 KiB
TypeScript
23 lines
1.2 KiB
TypeScript
import {BuildPackage, buildConfig} from 'material2-build-tools';
|
|
import {join} from 'path';
|
|
|
|
export const cdkPackage = new BuildPackage('cdk');
|
|
export const materialPackage = new BuildPackage('material', [cdkPackage]);
|
|
export const cdkExperimentalPackage = new BuildPackage('cdk-experimental', [materialPackage]);
|
|
export const materialExperimentalPackage = new BuildPackage('material-experimental',
|
|
[cdkExperimentalPackage]);
|
|
export const momentAdapterPackage = new BuildPackage('material-moment-adapter', [materialPackage]);
|
|
export const examplesPackage = new BuildPackage('material-examples', [momentAdapterPackage]);
|
|
|
|
// 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;
|
|
|
|
// To avoid refactoring of the project the material package will map to the source path `lib/`.
|
|
materialPackage.sourceDir = join(buildConfig.packagesDir, 'lib');
|
|
|
|
// 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;
|