Files
angular__angular/tools/package-tools/build-config.ts
T
Kristiyan Kostadinov 3bc9ae9854 build: add placeholder for Angular version (#7303)
Adds the `0.0.0-NG` placeholder that will ensure that all published packages will have the same Angular requirements.
2017-09-28 15:33:13 -07:00

28 lines
981 B
TypeScript

import {findBuildConfig} from './find-build-config';
export interface BuildConfig {
/** Current version of the project. */
projectVersion: string;
/** Required Angular version for the project. */
angularVersion: string;
/** Path to the root of the project. */
projectDir: string;
/** Path to the directory where all packages are living. */
packagesDir: string;
/** Path to the directory where the output will be stored. */
outputDir: string;
/** License banner that will be placed inside of every bundle. */
licenseBanner: string;
}
// Search for a build config by walking up the current working directory of the Node process.
const buildConfigPath = findBuildConfig();
if (!buildConfigPath) {
throw 'Material2 Build tools were not able to find a build config. ' +
'Please create a "build-config.js" file in your project.';
}
// Load the config file using a basic CommonJS import.
export const buildConfig = require(buildConfigPath) as BuildConfig;