xrforge-webxr/package.json
2025-11-10 21:17:21 +01:00

25 lines
1.3 KiB
JSON

{
"name": "webxr",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"build": "echo -e \"hint: pass bun args via: BARG='--minify' npm run build'\n\n\" && rm dist/xrforge/*.js || true && BARG=$BARG npm run build-xrforge; BARG=$BARG npm run build-aframe",
"build-xrforge": "test -d node_modules/janusweb/build || { cd node_modules/janusweb && ln -s ../. node_modules && utils/init.sh 2>&1 | grep -Ev '^npm ' && npm run build; }; bun build ${BARG} --outdir=dist/xrforge -e janusweb.css -e janusweb.js -e manifest.json xrforge.html && cp -r node_modules/janusweb/build/1.5.56/{media,*.js,*.json,*.css} dist/xrforge/. && monolith dist/xrforge/xrforge.html --output dist/xrforge.html",
"build-aframe": "mkdir -p dist/aframe && bun build ${BARG} --outdir=dist/aframe aframe.html && monolith dist/aframe/aframe.html --output dist/aframe.html && sed -i 's|data:module|data:text/javascript;|g' dist/aframe.html # https://github.com/Y2Z/monolith/issues/474 ",
"postinstall":""
},
"author": "Leon van Kammen",
"license": "",
"description": "",
"dependencies": {
"@needle-tools/three-animation-pointer": "^1.0.7",
"@zip.js/zip.js": "^2.8.8",
"aframe": "^1.7.1",
"janusweb": "^1.5.56",
"remotestoragejs": "^2.0.0-beta.8",
"trystero": "^0.22.0",
"webdav": "^5.8.0",
"xrf": "^0.0.1",
"xrsh": "^0.0.5"
}
}