refactor: add license header to JS files & format files (#12081)

This commit is contained in:
Victor Berchet
2016-10-04 20:39:20 -07:00
committed by Chuck Jazdzewski
parent d25cd244af
commit 0fde7ecd0f
72 changed files with 1166 additions and 946 deletions

View File

@ -1,6 +1,14 @@
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
class RollupNG2 {
resolveId(id, from){
if(id.startsWith('@angular/')){
resolveId(id, from) {
if (id.startsWith('@angular/')) {
return `${__dirname}/../../packages-dist/${id.split('/')[1]}/esm/index.js`;
}
@ -10,11 +18,10 @@ class RollupNG2 {
}
}
export default {
entry: 'test.js',
format: 'es6',
plugins: [
new RollupNG2(),
]
}
};