package.tasks.cibundle.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plotly.js Show documentation
Show all versions of plotly.js Show documentation
The open source javascript graphing library that powers plotly
The newest version!
var constants = require('./util/constants');
var _bundle = require('./util/bundle_wrapper');
/*
* Trimmed down version of ./bundle.js for CI testing
*
* Outputs:
*
* - plotly.js bundle in build/
* - plotly-geo-assets.js bundle in build/ (in accordance with test/image/index.html)
* - plotly.min.js bundle in build/ (for minified_bundle test)
*/
// Bundle plotly.js and plotly.min.js
_bundle(constants.pathToPlotlyIndex, constants.pathToPlotlyBuild, {
noCompress: true,
pathToMinBundle: constants.pathToPlotlyBuildMin
}, function() {
// Bundle the geo assets
_bundle(constants.pathToPlotlyGeoAssetsSrc, constants.pathToPlotlyGeoAssetsDist, {
standalone: 'PlotlyGeoAssets'
});
});