Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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