File tree 1 file changed +13
-8
lines changed
1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,18 @@ var common = require('./util/common');
7
7
var constants = require ( './util/constants' ) ;
8
8
var pkg = require ( '../package.json' ) ;
9
9
10
+ var year = ( new Date ( ) ) . getFullYear ( ) ;
11
+
12
+ var copyrightAndLicense = [
13
+ '## Copyright and license' ,
14
+ '' ,
15
+ 'Code and documentation copyright ' + year + ' Plotly, Inc.' ,
16
+ '' ,
17
+ 'Code released under the [MIT license](https://github.com/plotly/plotly.js/blob/master/LICENSE).' ,
18
+ '' ,
19
+ 'Docs released under the [Creative Commons license](https://github.com/plotly/documentation/blob/source/LICENSE).' ,
20
+ ''
21
+ ] . join ( '\n' ) ;
10
22
var packagesSpecs = constants . partialBundlePaths
11
23
. map ( function ( d ) {
12
24
return {
@@ -88,14 +100,7 @@ packagesSpecs.forEach(function(d) {
88
100
'var Plotly = require(\'' + d . name + '\');' ,
89
101
'```' ,
90
102
'' ,
91
- '## Copyright and license' ,
92
- '' ,
93
- 'Code and documentation copyright 2018 Plotly, Inc.' ,
94
- '' ,
95
- 'Code released under the [MIT license](https://github.com/plotly/plotly.js/blob/master/LICENSE).' ,
96
- '' ,
97
- 'Docs released under the [Creative Commons license](https://github.com/plotly/documentation/blob/source/LICENSE).' ,
98
- ''
103
+ copyrightAndLicense
99
104
] ;
100
105
101
106
fs . writeFile (
You can’t perform that action at this time.
0 commit comments