Skip to content

Commit e4617ac

Browse files
authored
Merge pull request #1061 from plotly/node-v6
Bump node.js to v6 LTS
2 parents bf714d0 + 2298125 commit e4617ac

File tree

5 files changed

+21
-22
lines changed

5 files changed

+21
-22
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ We use the following [labels](https://github.com/plotly/plotly.js/labels) to tra
3232
#### Perequisites
3333

3434
- git
35-
- [node.js](https://nodejs.org/en/). We recommend using node.js 4.2.x (LTS).
35+
- [node.js](https://nodejs.org/en/). We recommend using node.js v6.x or v4.x (both LTS).
3636
Upgrading and managing node versions can be easily done using
3737
[`nvm`](https://github.com/creationix/nvm) or its Windows alternatives.
3838

circle.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ general:
55

66
machine:
77
node:
8-
version: 4.2.1
8+
version: 6.1.0
99
services:
1010
- docker
1111

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"test-export": "node tasks/test_export.js",
4040
"test-syntax": "node tasks/test_syntax.js",
4141
"test-bundle": "node tasks/test_bundle.js",
42-
"test": "npm run citest-jasmine && npm run test-image && npm run test-syntax && npm run test-bundle",
42+
"test": "npm run citest-jasmine && npm run test-image && npm run test-image-gl2d && npm run test-syntax && npm run test-bundle",
4343
"start-test_dashboard": "node devtools/test_dashboard/server.js",
4444
"start-image_viewer": "node devtools/image_viewer/server.js",
4545
"start": "npm run start-test_dashboard",
@@ -96,9 +96,9 @@
9696
"browserify": "^13.0.0",
9797
"browserify-transform-tools": "^1.5.1",
9898
"deep-equal": "^1.0.1",
99-
"ecstatic": "^1.4.0",
99+
"ecstatic": "^2.1.0",
100100
"eslint": "^3.5.0",
101-
"falafel": "^1.2.0",
101+
"falafel": "^2.0.0",
102102
"fs-extra": "^0.30.0",
103103
"fuse.js": "^2.2.0",
104104
"glob": "^7.0.0",
@@ -107,11 +107,11 @@
107107
"jasmine-core": "^2.4.1",
108108
"karma": "^1.1.0",
109109
"karma-browserify": "^5.0.1",
110-
"karma-chrome-launcher": "^1.0.1",
110+
"karma-chrome-launcher": "^2.0.0",
111111
"karma-coverage": "^1.0.0",
112112
"karma-firefox-launcher": "^1.0.0",
113113
"karma-jasmine": "^1.0.2",
114-
"madge": "^0.6.0",
114+
"madge": "^1.4.3",
115115
"node-sass": "^3.4.1",
116116
"npm-link-check": "^1.1.0",
117117
"open": "0.0.5",

tasks/test_syntax.js

+12-11
Original file line numberDiff line numberDiff line change
@@ -98,20 +98,21 @@ function assertFileNames() {
9898

9999
// check circular dependencies
100100
function assertCircularDeps() {
101-
var dependencyObject = madge(constants.pathToSrc);
102-
var circularDeps = dependencyObject.circular().getArray();
103-
var logs = [];
101+
madge(constants.pathToSrc).then(function(res) {
102+
var circularDeps = res.circular();
103+
var logs = [];
104104

105-
// as of v1.17.0 - 2016/09/08
106-
// see https://github.com/plotly/plotly.js/milestone/9
107-
// for more details
108-
var MAX_ALLOWED_CIRCULAR_DEPS = 34;
105+
// as of v1.17.0 - 2016/09/08
106+
// see https://github.com/plotly/plotly.js/milestone/9
107+
// for more details
108+
var MAX_ALLOWED_CIRCULAR_DEPS = 34;
109109

110-
if(circularDeps.length > MAX_ALLOWED_CIRCULAR_DEPS) {
111-
logs.push('some new circular dependencies were added to src/');
112-
}
110+
if(circularDeps.length > MAX_ALLOWED_CIRCULAR_DEPS) {
111+
logs.push('some new circular dependencies were added to src/');
112+
}
113113

114-
log('circular dependencies', logs);
114+
log('circular dependencies', logs);
115+
});
115116
}
116117

117118
function combineGlobs(arr) {

test/jasmine/tests/mapbox_test.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -448,11 +448,9 @@ describe('mapbox plots', function() {
448448
expect(mapInfo.zoom).toBeCloseTo(zoom);
449449

450450
var divStyle = mapInfo.div.style;
451-
var expectedDims = ['left', 'top', 'width', 'height'].map(function(p) {
452-
return parseFloat(divStyle[p]);
451+
['left', 'top', 'width', 'height'].forEach(function(p, i) {
452+
expect(parseFloat(divStyle[p])).toBeWithin(dims[i], 5);
453453
});
454-
455-
expect(expectedDims).toBeCloseToArray(dims);
456454
}
457455

458456
assertLayout('Mapbox Dark', [-4.710, 19.475], 1.234, [80, 100, 908, 270]);

0 commit comments

Comments
 (0)