Files
vinihcrosaandClaude Opus 4.8 45506efede build(web): 3D asset pipeline + three/r3f deps (foundation for 3D view)
Add three, @react-three/fiber, @react-three/drei (runtime) and gltf-transform /
gltfpack (dev) plus apps/web/scripts/build-3d-assets.sh, which compresses the
local Baía de Guanabara + celso_furtado source packs into web-ready GLBs
(meshopt geometry + WebP@1024 textures — no KTX2 transcoder needed under our
COOP/COEP). v1 subset = batimetria + ilhas + ponte + vessel (~21MB, down from
~640MB); topografia excluded (pathological per-tile textures). Generated GLBs are
gitignored — run the script once locally before using the 3D view.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 00:46:58 -03:00

48 lines
1.3 KiB
JSON

{
"name": "@ymir/web",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"clean": "rm -rf dist coverage",
"test": "vitest run --coverage",
"test:watch": "vitest",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui"
},
"dependencies": {
"@react-three/drei": "^10.7.7",
"@react-three/fiber": "^9.6.1",
"@types/leaflet": "^1.9.21",
"@ymir/types": "workspace:*",
"leaflet": "^1.9.4",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"react-leaflet": "^5.0.0",
"react-router-dom": "^7.18.1",
"three": "^0.185.0",
"zustand": "^5.0.0"
},
"devDependencies": {
"@gltf-transform/cli": "^4.4.0",
"@playwright/test": "^1.61.1",
"@sinclair/typebox": "^0.34.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@types/three": "^0.185.0",
"@vitejs/plugin-react": "^4.3.0",
"@vitest/coverage-v8": "^4.1.9",
"gltfpack": "^1.1.0",
"jsdom": "^29.1.1",
"typescript": "^5.8.0",
"vite": "^6.3.0",
"vitest": "^4.1.9"
}
}