Skip to content
Merged
Changes from 1 commit
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
Next Next commit
Publishing minified files to own dist packages
  • Loading branch information
Chris Wainwright committed Sep 6, 2019
commit 9b77ee39ea49e2ae20734bccbd502fc7cb69b0fb
20 changes: 20 additions & 0 deletions tasks/sync_packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,26 @@ constants.partialBundlePaths
}])
.forEach(syncPartialBundlePkg);

// sync "minified partial bundle" packages
constants.partialBundlePaths
.map(function(d) {
return {
name: 'plotly.js-' + d.name + '-dist-min',
index: d.index,
main: 'plotly-' + d.name + '.min.js',
dist: d.distMin,
desc: 'Ready-to-use minified plotly.js ' + d.name + ' distributed bundle.',
};
})
.concat([{
name: 'plotly.js-dist-min',
index: path.join(constants.pathToLib, 'index.js'),
main: 'plotly.min.js',
dist: constants.pathToPlotlyDistMin,
desc: 'Ready-to-use minified plotly.js distributed bundle.',
}])
.forEach(syncPartialBundlePkg);

// sync "locales" package
syncLocalesPkg({
name: 'plotly.js-locales',
Expand Down