<commit_before>var fs = require('fs');

var browserify = require('browserify');

var constants = require('./util/constants');
var common = require('./util/common');
var compressAttributes = require('./util/compress_attributes');

/*
 * Trimmed down version of ./bundle.js for CI testing
 *
 * Outputs plotly.js bundle in build/ and
 * plotly-geo-assets.js bundle in dist/
 * in accordance with test/image/index.html
 *
 */


// Browserify plotly.js
browserify(constants.pathToPlotlyIndex, {
    standalone: 'Plotly',
    transform: [compressAttributes]
})
.bundle(common.throwOnError)
.pipe(fs.createWriteStream(constants.pathToPlotlyBuild));


// Browserify the geo assets
browserify(constants.pathToPlotlyGeoAssetsSrc, {
    standalone: 'PlotlyGeoAssets'
})
.bundle(common.throwOnError)
.pipe(fs.createWriteStream(constants.pathToPlotlyGeoAssetsDist));<commit_msg>tasks: make cibundle output plotly.min.js<commit_after>var constants = require('./util/constants');
var _bundle = require('./util/browserify_wrapper');

/*
 * Trimmed down version of ./bundle.js for CI testing
 *
 * Outputs:
 *
 *  - plotly.js bundle in build/
 *  - plotly-geo-assets.js bundle in dist/ (in accordance with test/image/index.html)
 *  - plotly.min.js bundle in dist/ (for requirejs test)
 */


// Browserify plotly.js and plotly.min.js
_bundle(constants.pathToPlotlyIndex, constants.pathToPlotlyBuild, {
    standalone: 'Plotly',
    pathToMinBundle: constants.pathToPlotlyDistMin,
});

// Browserify the geo assets
_bundle(constants.pathToPlotlyGeoAssetsSrc, constants.pathToPlotlyGeoAssetsDist, {
    standalone: 'PlotlyGeoAssets'
});
{'fraction_non_alphanumeric': 0.12855377008652658, 'fraction_numerical': 0.0, 'mean_word_length': 4.74113475177305, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1953966', 'n_tokens_mistral': 537, 'n_tokens_neox': 520, 'n_words': 110}