Skip to content

Commit 70b6b72

Browse files
authored
Merge pull request #28 from BioNGFF/feat/react-component
export react component
2 parents a2c459d + 0f4c025 commit 70b6b72

58 files changed

Lines changed: 1145 additions & 179 deletions

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.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,20 @@ jobs:
3737
git fetch origin main
3838
git checkout main
3939
echo "Building main branch output..."
40-
pnpm build --outDir dist
40+
pnpm build
4141
4242
- name: Build dev branch
4343
run: |
4444
git fetch origin dev
4545
git checkout dev
4646
echo "Building dev branch output..."
47-
pnpm build --outDir dist/dev
48-
touch dist/.nojekyll
47+
pnpm build
48+
touch sites/app/dist/.nojekyll
4949
5050
- name: Upload build output
5151
uses: actions/upload-pages-artifact@v3
5252
with:
53-
path: dist
53+
path: sites/app/dist
5454

5555
deploy:
5656
runs-on: ubuntu-latest

.github/workflows/npm-publish-dev.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,18 @@ jobs:
2727

2828
- name: Update prerelease version
2929
id: pre-release-version
30-
uses: adobe/update-prerelease-npm-version@v1.0.0
30+
uses: adobe/update-prerelease-npm-version@v1.2.0
3131
with:
3232
pre-release-tag: "dev"
3333

34+
- name: Sync package versions
35+
run: pnpm -r exec npm version ${{ steps.pre-release-version.outputs.pre-release-version }} --no-git-tag-version
36+
3437
- name: Install dependencies
3538
run: pnpm install
3639

3740
- name: Build package
38-
run: pnpm run build
41+
run: pnpm build:viewer
3942

4043
- name: Configure npm authentication
4144
run: |
@@ -46,4 +49,4 @@ jobs:
4649
- name: Publish to npm
4750
env:
4851
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
49-
run: pnpm publish --tag dev --access public --no-git-checks
52+
run: pnpm publish viewer --tag dev --access public --no-git-checks

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: pnpm install
2929

3030
- name: Build package
31-
run: pnpm run build
31+
run: pnpm build:viewer
3232

3333
- name: Configure npm authentication
3434
run: |
@@ -39,4 +39,4 @@ jobs:
3939
- name: Publish to npm
4040
env:
4141
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
42-
run: pnpm publish --access public --no-git-checks
42+
run: pnpm publish viewer --access public --no-git-checks

.releaserc.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
"changelogTitle": "# Changelog"
1212
}
1313
],
14+
[
15+
"@semantic-release/exec",
16+
{
17+
"prepareCmd": "pnpm -r exec npm version ${nextRelease.version} --no-git-tag-version"
18+
}
19+
],
1420
[
1521
"@semantic-release/npm",
1622
{
@@ -20,7 +26,7 @@
2026
[
2127
"@semantic-release/git",
2228
{
23-
"assets": ["package.json", "package-lock.json", "CHANGELOG.md"],
29+
"assets": ["package.json", "viewer/package.json", "sites/app/package.json", "pnpm-lock.yaml", "CHANGELOG.md"],
2430
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
2531
}
2632
],

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@
88
},
99
"[typescript]": {
1010
"editor.defaultFormatter": "biomejs.biome"
11+
},
12+
"[javascript]": {
13+
"editor.defaultFormatter": "biomejs.biome"
1114
}
1215
}

main.ts

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

netlify.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build]
2+
command = "pnpm run build"
3+
publish = "sites/app/dist"

package.json

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,22 @@
11
{
2-
"name": "@biongff/vizarr",
2+
"name": "biongff-monorepo",
33
"version": "1.1.1",
4-
"type": "module",
4+
"author": "BioNGFF",
5+
"license": "MIT",
56
"scripts": {
6-
"dev": "vite",
7-
"build": "npm run check && vite build",
8-
"preview": "vite preview",
7+
"dev": "pnpm --filter app dev",
98
"lint": "biome ci",
109
"fix": "biome check --write",
11-
"check": "tsc"
12-
},
13-
"dependencies": {
14-
"@deck.gl/core": "~9.0.0",
15-
"@deck.gl/geo-layers": "~9.0.0",
16-
"@deck.gl/layers": "~9.0.0",
17-
"@emotion/react": "^11.14.0",
18-
"@emotion/styled": "^11.14.1",
19-
"@hms-dbmi/viv": "~0.17.2",
20-
"@mui/icons-material": "^7.2.0",
21-
"@mui/material": "^7.2.0",
22-
"@vivjs/types": "~0.17.0",
23-
"@zarrita/storage": "0.1.3",
24-
"deck.gl": "~9.0.0",
25-
"jotai": "^1.0.0",
26-
"just-debounce-it": "^3.1.1",
27-
"math.gl": "^4.1.0",
28-
"p-map": "^7.0.3",
29-
"quick-lru": "^7.0.0",
30-
"react": "^18.2.0",
31-
"react-dom": "^18.2.0",
32-
"react-is": "18.3.1",
33-
"zarrita": "0.5.0"
10+
"check": "pnpm build:viewer && pnpm -r run check",
11+
"build:viewer": "pnpm --filter vizarr build",
12+
"build:app": "pnpm --filter app build",
13+
"build": "pnpm build:viewer && pnpm build:app"
3414
},
3515
"devDependencies": {
3616
"@biomejs/biome": "^1.9.4",
3717
"@semantic-release/changelog": "^6.0.3",
3818
"@semantic-release/commit-analyzer": "^13.0.1",
19+
"@semantic-release/exec": "^7.1.0",
3920
"@semantic-release/git": "^10.0.1",
4021
"@semantic-release/github": "^12.0.2",
4122
"@semantic-release/npm": "^13.1.1",
@@ -48,9 +29,6 @@
4829
"typescript": "^5.8.2",
4930
"vite": "^6.2.7"
5031
},
51-
"overrides": {
52-
"react-is": "^18.3.1"
53-
},
5432
"packageManager": "pnpm@9.5.0",
5533
"pnpm": {
5634
"patchedDependencies": {

0 commit comments

Comments
 (0)