Skip to content

Commit 109f394

Browse files
committed
Merge remote-tracking branch 'origin/master' into dummy-anchor-href
2 parents 5abb740 + 17c9f0c commit 109f394

File tree

16 files changed

+255
-664
lines changed

16 files changed

+255
-664
lines changed

.circleci/config.yml

Lines changed: 12 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,8 @@ jobs:
1515
steps:
1616
- checkout
1717
- run:
18-
name: set heap option before very first node.js call
19-
command: |
20-
export NODE_OPTIONS='--max-old-space-size=4096'
21-
- run:
22-
name: Install dependencies
23-
command: |
24-
npm ci
25-
- run:
26-
name: List dependency versions
27-
command: |
28-
echo "npm: $(npm --version)"
29-
echo "node: $(node --version)"
30-
npm ls || true
18+
name: set up build environment
19+
command: .circleci/env_build.sh
3120
- run:
3221
name: Pretest
3322
command: |
@@ -87,31 +76,8 @@ jobs:
8776
- attach_workspace:
8877
at: ~/
8978
- run:
90-
name: which pip3 version
91-
command: which pip3 && pip3 --version
92-
- run:
93-
name: install kaleido v0.2.1
94-
command: python3 -m pip install kaleido==0.2.1
95-
- run:
96-
name: install plotly.io v5.0.0
97-
command: python3 -m pip install plotly==5.0.0
98-
- run:
99-
name: install liberation2 fonts
100-
command: sudo apt-get install fonts-liberation2
101-
- run:
102-
name: install OpenSans fonts
103-
command: sudo apt-get install fonts-open-sans
104-
- run:
105-
name: install NotoSansCJK fonts
106-
command: sudo apt install fonts-noto-cjk
107-
- run:
108-
name: download google fonts e.g. Dosis, GravitasOne, NotoSansMono, NotoSans, NotoSerif, Old_Standard_TT, PT_Sans_Narrow, Raleway and Roboto
109-
command: python3 .circleci/download_google_fonts.py
110-
- run:
111-
name: install downloaded google fonts
112-
command: |
113-
sudo cp -r .circleci/fonts/ /usr/share/
114-
sudo fc-cache -f
79+
name: install kaleido, plotly.io and required fonts
80+
command: .circleci/env_image.sh
11581
- run:
11682
name: create all png files
11783
command: .circleci/test.sh make-baselines
@@ -142,14 +108,8 @@ jobs:
142108
- attach_workspace:
143109
at: ~/
144110
- run:
145-
name: which pip3 version
146-
command: which pip3 && pip3 --version
147-
- run:
148-
name: install kaleido v0.2.1
149-
command: python3 -m pip install kaleido==0.2.1
150-
- run:
151-
name: install plotly.io v5.0.0
152-
command: python3 -m pip install plotly==5.0.0
111+
name: install kaleido, plotly.io and required fonts
112+
command: .circleci/env_image.sh
153113
- run:
154114
name: install poppler-utils to have pdftops for exporting eps
155115
command: sudo apt-get install poppler-utils
@@ -217,8 +177,10 @@ jobs:
217177
- image: circleci/node:12.22.1
218178
working_directory: ~/plotly.js
219179
steps:
220-
- attach_workspace:
221-
at: ~/
180+
- checkout
181+
- run:
182+
name: set up build environment
183+
command: .circleci/env_build.sh
222184
- run:
223185
name: Build dist/
224186
command: npm run build
@@ -242,18 +204,6 @@ jobs:
242204
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.js
243205
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.min.js
244206
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plot-schema.json
245-
- persist_to_workspace:
246-
root: ~/
247-
paths:
248-
- plotly.js
249-
250-
test-dist1:
251-
docker:
252-
- image: circleci/node:12.22.1
253-
working_directory: ~/plotly.js
254-
steps:
255-
- attach_workspace:
256-
at: ~/
257207
- run:
258208
name: Test plotly.min.js import using requirejs
259209
command: npm run test-requirejs
@@ -263,20 +213,9 @@ jobs:
263213
- run:
264214
name: Test certain bundles against function constructors
265215
command: npm run no-new-func
266-
267-
test-dist2:
268-
docker:
269-
- image: circleci/node:12.22.1
270-
working_directory: ~/plotly.js
271-
steps:
272-
- attach_workspace:
273-
at: ~/
274216
- run:
275217
name: Test plotly bundles against es6
276218
command: npm run no-es6-dist
277-
- run:
278-
name: Test plotly bundles againt duplicate keys
279-
command: npm run no-dup-keys
280219

281220
workflows:
282221
version: 2
@@ -313,12 +252,5 @@ workflows:
313252
- source-syntax:
314253
requires:
315254
- install-and-cibuild
316-
- publish-dist:
317-
requires:
318-
- install-and-cibuild
319-
- test-dist1:
320-
requires:
321-
- publish-dist
322-
- test-dist2:
323-
requires:
324-
- publish-dist
255+
256+
- publish-dist

.circleci/env_build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
export NODE_OPTIONS='--max-old-space-size=4096' && \
3+
echo "node version: $(node --version)" && \
4+
echo "npm version: $(npm --version)" && \
5+
npm ci && \
6+
npm ls || true

.circleci/env_image.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
sudo apt-get install fonts-liberation2 fonts-open-sans fonts-noto-cjk fonts-noto-color-emoji && \
3+
sudo python3 .circleci/download_google_fonts.py && \
4+
sudo cp -r .circleci/fonts/ /usr/share/ && \
5+
sudo fc-cache -f && \
6+
sudo python3 -m pip install kaleido==0.2.1 plotly==5.1.0 --progress-bar off

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
7171

7272
Alternatively you may consider using [native ES6 import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) in the script tag.
7373
```html
74-
<script>
74+
<script type="module">
7575
import "https://cdn.plot.ly/plotly-2.2.0.min.js"
7676
Plotly.newPlot("gd", [{ y: [1, 2, 3] }])
7777
</script>

package-lock.json

Lines changed: 37 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
]
6363
},
6464
"dependencies": {
65-
"@plotly/d3": "3.6.1",
65+
"@plotly/d3": "3.7.0",
6666
"@plotly/d3-sankey": "0.7.2",
6767
"@plotly/d3-sankey-circular": "0.33.1",
6868
"@plotly/point-cluster": "^3.1.9",
@@ -78,6 +78,8 @@
7878
"convex-hull": "^1.0.3",
7979
"country-regex": "^1.1.0",
8080
"d3-force": "^1.2.1",
81+
"d3-geo": "^1.12.1",
82+
"d3-geo-projection": "^2.9.0",
8183
"d3-hierarchy": "^1.1.9",
8284
"d3-interpolate": "^1.4.0",
8385
"d3-time-format": "^2.2.3",
@@ -114,9 +116,9 @@
114116
"polybooljs": "^1.2.0",
115117
"probe-image-size": "^7.2.1",
116118
"regl": "^1.6.1",
117-
"regl-error2d": "^2.0.11",
118-
"regl-line2d": "^3.1.0",
119-
"regl-scatter2d": "^3.2.3",
119+
"regl-error2d": "^2.0.12",
120+
"regl-line2d": "^3.1.1",
121+
"regl-scatter2d": "^3.2.6",
120122
"regl-splom": "^1.0.14",
121123
"right-now": "^1.0.0",
122124
"robust-orientation": "^1.1.3",

0 commit comments

Comments
 (0)