- Shared pipeline extracted to src/pipeline.js (browser + node run identical logic) - Draco: vendored decoder WASM in public/draco/, lazy-registered by peeking the GLB JSON chunk before read (gltf-transform fails cryptically on a mid-read missing dependency); DRACOLoader wired into the viewer; extension stripped on write so output is standard GLB - bin/cli.js: NodeIO + draco3dgltf + sharp textures, presets/flag overrides, batch with --outdir, per-file report Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
30 lines
613 B
JSON
30 lines
613 B
JSON
{
|
|
"name": "shrinkgod",
|
|
"version": "1.0.0",
|
|
"description": "",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"preview": "vite preview"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"type": "module",
|
|
"dependencies": {
|
|
"@gltf-transform/core": "^4.4.2",
|
|
"@gltf-transform/extensions": "^4.4.2",
|
|
"@gltf-transform/functions": "^4.4.2",
|
|
"draco3dgltf": "^1.5.7",
|
|
"meshoptimizer": "^1.2.0",
|
|
"sharp": "^0.35.4",
|
|
"three": "^0.185.1"
|
|
},
|
|
"devDependencies": {
|
|
"vite": "^8.2.2"
|
|
},
|
|
"bin": {
|
|
"shrinkgod": "bin/cli.js"
|
|
}
|
|
} |