Skip to content

Commit 84c064b

Browse files
authored
Merge pull request #2323 from plotly/node8
Switch to node8 & npm5
2 parents 18dac1f + b975f0b commit 84c064b

File tree

8 files changed

+13373
-6484
lines changed

8 files changed

+13373
-6484
lines changed

.circleci/config.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@ version: 2.0
33
# Inspired by:
44
# https://github.com/CircleCI-Public/circleci-demo-workflows/blob/workspace-forwarding/.circleci/config.yml
55
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
6+
#
7+
# For list of official CircleCI node.js images, go to:
8+
# https://hub.docker.com/r/circleci/node/tags/
69

710
jobs:
811
build:
912
docker:
10-
- image: circleci/node:6.10.3
13+
- image: circleci/node:8.9.4
1114
working_directory: ~/plotly.js
1215
steps:
1316
- checkout
1417
- restore_cache:
1518
keys:
16-
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-deps-{{ .Branch }}-{{ checksum "package.json" }}
17-
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-deps-master-{{ checksum "package.json" }}
19+
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-deps-{{ .Branch }}-{{ checksum "package-lock.json" }}
20+
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-deps-master-{{ checksum "package-lock.json" }}
1821
- run:
1922
name: Install dependencies
2023
command: |
2124
npm install
22-
npm dedupe
23-
npm prune
24-
npm install
2525
- run:
2626
name: List dependency versions
2727
command: |
@@ -47,7 +47,7 @@ jobs:
4747
test-jasmine:
4848
docker:
4949
# need '-browsers' version to test in real (xvfb-wrapped) browsers
50-
- image: circleci/node:6.10.3-browsers
50+
- image: circleci/node:8.9.4-browsers
5151
working_directory: ~/plotly.js
5252
steps:
5353
- checkout
@@ -82,7 +82,7 @@ jobs:
8282

8383
test-syntax:
8484
docker:
85-
- image: circleci/node:6.10.3
85+
- image: circleci/node:8.9.4
8686
working_directory: ~/plotly.js
8787
steps:
8888
- checkout

.eslintrc

+5-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"no-trailing-spaces": [2],
2424
"no-multiple-empty-lines": [2, {"max": 2, "maxEOF": 0}],
2525
"eol-last": [2],
26-
"indent": [2, 4, {"SwitchCase": 1}],
26+
"indent": [0],
27+
"indent-legacy": [2, 4, {"SwitchCase": 1}],
2728
"max-len": [0, 80],
2829
"brace-style": [0, "stroustrup", {"allowSingleLine": true}],
2930
"curly": [2, "multi-line"],
@@ -46,7 +47,7 @@
4647
"space-before-blocks": [2],
4748
"spaced-comment": [2, "always"],
4849
"no-tabs": [2],
49-
"no-multi-spaces": [2],
50+
"no-multi-spaces": [2, {"ignoreEOLComments": true}],
5051
"no-whitespace-before-property": [2],
5152
"no-unexpected-multiline": [2],
5253
"no-floating-decimal": [2],
@@ -65,6 +66,7 @@
6566
"no-use-before-define": [2, "nofunc"],
6667
"no-loop-func": [2],
6768
"no-console": [0],
68-
"no-unused-labels": [2]
69+
"no-unused-labels": [2],
70+
"no-useless-escape": [0]
6971
}
7072
}

.github/PULL_REQUEST_TEMPLATE.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ Developers are strongly encouraged to first make a PR to their own plotly.js for
1515
Before opening a pull request, developer should:
1616

1717
- `git rebase` their local branch off the latest `master`,
18-
- make sure to **not** `git add` the `dist/` folder (the `dist/` is updated only on verion bumps),
18+
- make sure to **not** `git add` the `dist/` folder (the `dist/` is updated only on version bumps),
19+
- make sure to commit changes to the `package-lock.json` file (if any),
1920
- write an overview of what the PR attempts to do,
2021
- select the _Allow edits from maintainers_ option (see this [article](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) for more details).
2122

CONTRIBUTING.md

+11-6
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,24 @@ We use the following [labels](https://github.com/plotly/plotly.js/labels) to tra
2424
| `type: community` | issue left open for community input and pull requests |
2525
| `type: duplicate` | *self-explanatory* |
2626
| `type: wontfix` | *self-explanatory* |
27-
| `status: discussion needed` | Issue or PR that required discussion among maintaners before moving forward |
28-
| `status: in progress` | PRs that required some intial feedback but not ready to merge |
27+
| `status: discussion needed` | Issue or PR that required discussion among maintainers before moving forward |
28+
| `status: in progress` | PRs that required some initial feedback but not ready to merge |
2929
| `status: reviewable` | PRs that are completed from the author's perspective |
3030
| `status: on hold` | PRs that are put on hold |
3131

3232
## Development
3333

34-
#### Perequisites
34+
#### Prerequisites
3535

3636
- git
37-
- [node.js](https://nodejs.org/en/). We recommend using node.js v6.x or v4.x (both LTS).
38-
Upgrading and managing node versions can be easily done using
39-
[`nvm`](https://github.com/creationix/nvm) or its Windows alternatives.
37+
- [node.js](https://nodejs.org/en/). We recommend using node.js v8.x, but all
38+
versions starting from v4 should work. Upgrading and managing node versions
39+
can be easily done using [`nvm`](https://github.com/creationix/nvm) or its
40+
Windows alternatives.
41+
- [`npm`](https://www.npmjs.com/) v5.x and up (which ships by default with
42+
node.js v8.x) to ensure that the
43+
[`package-lock.json`](https://docs.npmjs.com/files/package-lock.json) file is
44+
used and updated correctly.
4045

4146
#### Step 1: Clone the plotly.js repo and install its dependencies
4247

0 commit comments

Comments
 (0)