chore: add license header to umd bundles (#2348)

* chore: add license header to umd bundles

* Adds a license header to the UMD bundles. Similar to @angular core packages.

* Link to material.angular.io page
This commit is contained in:
Paul Gschwendtner
2016-12-22 18:06:43 +01:00
committed by Jeremy Elbourn
parent fcc83ad828
commit 1927814af5
2 changed files with 10 additions and 1 deletions
+8
View File
@@ -1,5 +1,7 @@
import {join} from 'path';
export const MATERIAL_VERSION = require('../../package.json').version;
export const PROJECT_ROOT = join(__dirname, '../..');
export const SOURCE_ROOT = join(PROJECT_ROOT, 'src');
@@ -22,6 +24,12 @@ export const HTML_MINIFIER_OPTIONS = {
removeAttributeQuotes: false
};
export const LICENSE_BANNER = `/**
* @license Angular Material v${MATERIAL_VERSION}
* Copyright (c) 2016 Google, Inc. https://material.angular.io/
* License: MIT
*/`;
export const NPM_VENDOR_FILES = [
'@angular', 'core-js/client', 'hammerjs', 'rxjs', 'systemjs/dist', 'zone.js/dist'
];
+2 -1
View File
@@ -2,7 +2,7 @@ import {task, watch, src, dest} from 'gulp';
import * as path from 'path';
import {
DIST_COMPONENTS_ROOT, PROJECT_ROOT, COMPONENTS_DIR, HTML_MINIFIER_OPTIONS
DIST_COMPONENTS_ROOT, PROJECT_ROOT, COMPONENTS_DIR, HTML_MINIFIER_OPTIONS, LICENSE_BANNER
} from '../constants';
import {sassBuildTask, tsBuildTask, execNodeTask, copyTask, sequenceTask} from '../task_helpers';
@@ -95,6 +95,7 @@ task(':build:components:rollup', () => {
moduleName: 'ng.material',
format: 'umd',
globals,
banner: LICENSE_BANNER,
dest: 'material.umd.js'
};