Skip to content

Commit 488dbca

Browse files
committed
use current year in partial bundle pkg licenses
1 parent 32cdbbe commit 488dbca

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

tasks/sync_packages.js

+13-8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ var common = require('./util/common');
77
var constants = require('./util/constants');
88
var pkg = require('../package.json');
99

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');
1022
var packagesSpecs = constants.partialBundlePaths
1123
.map(function(d) {
1224
return {
@@ -88,14 +100,7 @@ packagesSpecs.forEach(function(d) {
88100
'var Plotly = require(\'' + d.name + '\');',
89101
'```',
90102
'',
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
99104
];
100105

101106
fs.writeFile(

0 commit comments

Comments
 (0)