Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b0cca52

Browse files
committed
Revert "add versionify transform to add version to plotly.js dist files:"
This reverts commit afaeeaf.
1 parent afaeeaf commit b0cca52

File tree

4 files changed

+3
-16
lines changed

4 files changed

+3
-16
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"alpha-shape": "^1.0.0",
4343
"arraytools": "^1.0.0",
4444
"browserify": "^12.0.1",
45-
"browserify-versionify": "^1.0.6",
4645
"convex-hull": "^1.0.3",
4746
"d3": "3.5.6",
4847
"delaunay-triangulate": "^1.1.6",

src/assets/geo_assets.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,4 @@
99

1010
var saneTopojson = require('sane-topojson');
1111

12-
// export version using browserify-versionify
13-
exports.version = 'see package.json';
14-
1512
exports.topojson = saneTopojson;

src/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616

1717
var Plotly = require('./plotly');
1818

19-
// export version using browserify-versionify
20-
exports.version = 'see package.json';
21-
2219
// plot api
2320
exports.plot = Plotly.plot;
2421
exports.newPlot = Plotly.newPlot;

tasks/bundle.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
var fs = require('fs');
22

33
var browserify = require('browserify');
4-
var versionify = require('browserify-versionify');
54
var UglifyJS = require('uglify-js');
65

76
var compressAttributes = require('./util/compress_attributes');
87
var constants = require('./util/constants');
98

10-
var versionifyArg = [versionify, {placeholder: 'see package.json'}];
11-
12-
139
/*
1410
* This script takes one argument
1511
*
@@ -42,7 +38,7 @@ catch(e) {
4238
browserify(constants.pathToPlotlySrc, {
4339
debug: DEV,
4440
standalone: 'Plotly',
45-
transform: [compressAttributes, versionifyArg]
41+
transform: [compressAttributes]
4642
})
4743
.bundle(function(err, buf) {
4844
if(err) throw err;
@@ -60,8 +56,7 @@ browserify(constants.pathToPlotlySrc, {
6056

6157
// Browserify the geo assets
6258
browserify(constants.pathToPlotlyGeoAssetsSrc, {
63-
standalone: 'PlotlyGeoAssets',
64-
transform: [versionifyArg]
59+
standalone: 'PlotlyGeoAssets'
6560
})
6661
.bundle(function(err) {
6762
if(err) throw err;
@@ -72,8 +67,7 @@ browserify(constants.pathToPlotlyGeoAssetsSrc, {
7267
// Browserify the plotly.js with meta
7368
browserify(constants.pathToPlotlySrc, {
7469
debug: DEV,
75-
standalone: 'Plotly',
76-
transform: [versionifyArg]
70+
standalone: 'Plotly'
7771
})
7872
.bundle(function(err) {
7973
if(err) throw err;

0 commit comments

Comments
 (0)