Files
angular__angular/build-config.js
T
Paul Gschwendtner bae213d5f7 build: dynamic build config for packaging (#4939)
* build: dynamic build config for packaging

* Make discussed changes
2017-06-08 11:24:58 -07:00

24 lines
702 B
JavaScript

/**
* Build configuration for the packaging tool. This file will be automatically detected and used
* to build the different packages inside of Material.
*/
const {join} = require('path');
/** Current version of the project*/
const buildVersion = require('./package.json').version;
/** License that will be placed inside of all created bundles. */
const buildLicense = `/**
* @license Angular Material v${buildVersion}
* Copyright (c) 2017 Google, Inc. https://material.angular.io/
* License: MIT
*/`;
module.exports = {
projectVersion: buildVersion,
projectDir: __dirname,
packagesDir: join(__dirname, 'src'),
outputDir: join(__dirname, 'dist'),
licenseBanner: buildLicense
};