File tree Expand file tree Collapse file tree 4 files changed +37
-2
lines changed Expand file tree Collapse file tree 4 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 1
-
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
4
+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ * Code distributed by Google as part of the polymer project is also
8
+ * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
2
10
/**
3
11
* @fileoverview Closure types for Polymer mixins
4
12
*
Original file line number Diff line number Diff line change 1
1
/**
2
+ * @license
3
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
4
+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ * Code distributed by Google as part of the polymer project is also
8
+ * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ *
2
10
* @fileoverview Externs for Polymer
3
11
* @externs
4
12
*/
Original file line number Diff line number Diff line change 1
1
/**
2
+ * @license
3
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
4
+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ * Code distributed by Google as part of the polymer project is also
8
+ * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ *
2
10
* @fileoverview Externs for webcomponents polyfills
3
11
* @externs
4
12
*/
Original file line number Diff line number Diff line change @@ -68,6 +68,17 @@ let CLOSURE_LINT_ONLY = false;
68
68
69
69
let firstImportFinder = dom5 . predicates . AND ( dom5 . predicates . hasTagName ( 'link' ) , dom5 . predicates . hasAttrValue ( 'rel' , 'import' ) ) ;
70
70
71
+ const licenseHeader =
72
+ `/**
73
+ * @license
74
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
75
+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
76
+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
77
+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
78
+ * Code distributed by Google as part of the polymer project is also
79
+ * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
80
+ */` ;
81
+
71
82
class AddClosureTypeImport extends Transform {
72
83
constructor ( entryFileName , typeFileName ) {
73
84
super ( { objectMode : true } ) ;
@@ -241,6 +252,6 @@ gulp.task('lint', function() {
241
252
gulp . task ( 'generate-closure-externs' , [ 'clean' ] , ( ) => {
242
253
let genClosure = require ( '@polymer/gen-closure-declarations' ) . generateDeclarations ;
243
254
return genClosure ( ) . then ( ( declarations ) => {
244
- fs . writeFileSync ( 'externs/closure-types.js' , declarations ) ;
255
+ fs . writeFileSync ( 'externs/closure-types.js' , ` ${ licenseHeader } ${ declarations } ` ) ;
245
256
} ) ;
246
257
} ) ;
You can’t perform that action at this time.
0 commit comments