Skip to content

Commit

Permalink
Merge pull request #5605 from plotly/fixup-sync-npm-packages
Browse files Browse the repository at this point in the history
Fix the list of traces for publishing packages to npm
  • Loading branch information
archmoj authored May 4, 2021
2 parents a5a5de9 + 8ff08ad commit 7273e6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tasks/sync_packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ partialBundlePaths
main: 'plotly-' + d.name + '.js',
dist: d.dist,
desc: 'Ready-to-use plotly.js ' + d.name + ' distributed bundle.',
traceList: constants.partialBundleTraces[d.name]
};
})
.concat([{
Expand All @@ -42,6 +43,7 @@ partialBundlePaths
main: 'plotly.js',
dist: constants.pathToPlotlyDist,
desc: 'Ready-to-use plotly.js distributed bundle.',
traceList: constants.allTraces
}])
.forEach(syncPartialBundlePkg);

Expand All @@ -54,6 +56,7 @@ partialBundlePaths
main: 'plotly-' + d.name + '.min.js',
dist: d.distMin,
desc: 'Ready-to-use minified plotly.js ' + d.name + ' distributed bundle.',
traceList: constants.partialBundleTraces[d.name]
};
})
.concat([{
Expand All @@ -62,6 +65,7 @@ partialBundlePaths
main: 'plotly.min.js',
dist: constants.pathToPlotlyDistMin,
desc: 'Ready-to-use minified plotly.js distributed bundle.',
traceList: constants.allTraces
}])
.forEach(syncPartialBundlePkg);

Expand Down Expand Up @@ -105,14 +109,12 @@ function syncPartialBundlePkg(d) {


function writeREADME(cb) {
var traceList = d.traceList;

var cnt = [
'# ' + d.name,
'',
d.desc,
'',
'Contains trace modules ' + common.formatEnumeration(traceList) + '.',
'Contains trace modules ' + common.formatEnumeration(d.traceList) + '.',
'',
'For more info on plotly.js, go to https://github.com/plotly/plotly.js',
'',
Expand Down
2 changes: 2 additions & 0 deletions tasks/util/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ module.exports = {
pathToBuild: pathToBuild,
pathToDist: pathToDist,

partialBundleTraces: partialBundleTraces,

allTransforms: allTransforms,
allTraces: allTraces,
mainIndex: mainIndex,
Expand Down

0 comments on commit 7273e6d

Please sign in to comment.