mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
bae213d5f7
* build: dynamic build config for packaging * Make discussed changes
24 lines
702 B
JavaScript
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
|
|
};
|