Skip to content

Commit 74dedd4

Browse files
authored
Merge pull request #7101 from birkskyum/update-custom-bundle
Elaborate on custom bundle instructions
2 parents cc7f9f9 + 3d4cfe9 commit 74dedd4

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

CUSTOM_BUNDLE.md

+22-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
11
# Custom bundle
22
You can simply make custom bundles yourself, if none of the [distributed packages](https://github.com/plotly/plotly.js/blob/master/dist/README.md) meet your needs, or you want to make a more optimized bundle file with/without specific traces and transforms.
33

4-
Install plotly.js, move to plotly.js folder then install plotly.js dependencies:
4+
Make sure you have the versions of node/npm that's recommended:
5+
- plotly.js before 2.5: Node 12/npm 6
6+
- plotly.js from 2.5: Node 16/npm 8
7+
- plotly.js from 2.35: Node 18/npm 10
8+
9+
To download a specific node version look [here](https://nodejs.org/en/download/package-manager).
10+
11+
Note: For CI, it's faster to do `git clone --depth 1` to only get one commit.
12+
13+
Clone plotly.js, where the <version> is one of [these](https://github.com/plotly/plotly.js/tags):
14+
```sh
15+
git clone --branch <version> https://github.com/plotly/plotly.js.git
16+
```
17+
18+
Note: If you've already cloned plotly.js, then could switch to another version with:
19+
```sh
20+
git fetch
21+
git checkout <version>
22+
```
23+
24+
Move to plotly.js folder then install plotly.js dependencies:
525
```sh
6-
npm i plotly.js
7-
cd node_modules/plotly.js
26+
cd plotly.js
827
npm i
928
```
1029

draftlogs/7101_change.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Elaborate on the Custom Bundle guide [[#7101](https://github.com/plotly/plotly.js/pull/7101)]
2+

0 commit comments

Comments
 (0)