Skip to content

Commit 4bc79dd

Browse files
committed
rename and use dist in function and variable names
1 parent 4da8c59 commit 4bc79dd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tasks/stats.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function getMainBundleInfo() {
122122

123123
// info about partial bundles
124124
function getPartialBundleInfo() {
125-
return partialBundlePaths.map(makeBundleInfo);
125+
return partialBundlePaths.map(distBundleInfo);
126126
}
127127

128128
// footer info
@@ -143,11 +143,11 @@ function createLink(base, name) {
143143
return '[' + name + '](' + base + name + ')';
144144
}
145145

146-
function makeBundleInfo(pathObj) {
146+
function distBundleInfo(pathObj) {
147147
var name = pathObj.name;
148148
var sizes = findSizes(pathObj);
149149
var traceList = pathObj.traceList;
150-
var pkgName = 'plotly.js-' + name + '-dist';
150+
var nameDist = 'plotly.js-' + name + '-dist';
151151
var nameVersion = name + '-' + pkgVersion;
152152

153153
return [
@@ -168,9 +168,9 @@ function makeBundleInfo(pathObj) {
168168
'',
169169
'',
170170
'#### npm packages',
171-
'> ' + createLink('https://www.npmjs.com/package/', pkgName),
171+
'> ' + createLink('https://www.npmjs.com/package/', nameDist),
172172
'',
173-
'> ' + createLink('https://www.npmjs.com/package/', pkgName + '-min'),
173+
'> ' + createLink('https://www.npmjs.com/package/', nameDist + '-min'),
174174
'',
175175
'---',
176176
''

0 commit comments

Comments
 (0)