Skip to content

Commit 7863e9e

Browse files
authored
Merge pull request #19 from am2222/feature/added-release-please
Add interactive globe visualization components
2 parents 297cd5a + 1019811 commit 7863e9e

131 files changed

Lines changed: 1489 additions & 37870 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy-docs.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,28 @@ jobs:
2121
- uses: actions/checkout@v4
2222
with:
2323
fetch-depth: 0
24+
submodules: recursive
2425

2526
- uses: actions/setup-node@v4
2627
with:
2728
node-version: 20
2829

30+
- name: Setup Emscripten
31+
uses: mymindstorm/setup-emsdk@v14
32+
with:
33+
version: 4.0.7
34+
2935
- run: corepack enable
3036

3137
- name: Install dependencies
3238
run: yarn install --immutable
3339

40+
- name: Build WASM + JS bundles
41+
run: yarn build
42+
43+
- name: Smoke test dist/
44+
run: yarn test:dist
45+
3446
- name: Build docs
3547
run: yarn docs:build
3648

.github/workflows/pr-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- run: corepack enable
2424

25-
- uses: mymindstorm/setup-emsdk@v11
25+
- uses: mymindstorm/setup-emsdk@v14
2626

2727
- name: Install dependencies
2828
run: yarn install --immutable

.github/workflows/publish.yml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
- run: corepack enable
2727

28-
- uses: mymindstorm/setup-emsdk@v11
28+
- uses: mymindstorm/setup-emsdk@v14
2929

3030
- name: Verify emcc
3131
run: emcc -v
@@ -57,3 +57,42 @@ jobs:
5757
lib-wasm-py-libdggrid.js
5858
lib-wasm-py-libdggrid.wasm
5959
60+
verify-published:
61+
needs: build-publish-release
62+
runs-on: ubuntu-latest
63+
steps:
64+
- uses: actions/checkout@v4
65+
66+
- uses: actions/setup-node@v4
67+
with:
68+
node-version: 20.x
69+
70+
- name: Wait for npm registry
71+
run: |
72+
VERSION="${{ github.event.release.tag_name }}"
73+
VERSION="${VERSION#v}"
74+
echo "Waiting for webdggrid@${VERSION} on npm…"
75+
for i in $(seq 1 12); do
76+
if npm view "webdggrid@${VERSION}" version &>/dev/null; then
77+
echo "Package available."
78+
break
79+
fi
80+
echo " not yet (attempt ${i}/12), retrying in 10s…"
81+
sleep 10
82+
done
83+
84+
- name: Install published package
85+
run: |
86+
VERSION="${{ github.event.release.tag_name }}"
87+
VERSION="${VERSION#v}"
88+
mkdir /tmp/pkg-test
89+
cd /tmp/pkg-test
90+
echo '{"type":"module"}' > package.json
91+
npm install "webdggrid@${VERSION}"
92+
93+
- name: Smoke test published package
94+
run: |
95+
cp utils/smoke-test.mjs /tmp/pkg-test/
96+
cd /tmp/pkg-test
97+
node smoke-test.mjs webdggrid
98+

.gitignore

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
node_modules/
22
lib
3+
lib-esm/
4+
lib-wasm/
5+
lib-wasm-py/
6+
dist/
7+
types/
8+
*.tsbuildinfo
39
.yarn
410

5-
.vitepress/dist
6-
.vitepress/cache
11+
docs/.vitepress/dist
12+
docs/.vitepress/cache
713

814
# CMake build artifacts
915
CMakeFiles/
1016
CMakeCache.txt
1117
cmake_install.cmake
1218
*.o
1319
*.o.d
14-
*.bin
20+
*.bin

dist/index.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/index.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/index.umd.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/index.umd.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/webdggrid.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/webdggrid.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)