fix: serve buttplug locally in dev instead of Docker

Add a minimal Node.js static server (serve.mjs) to the buttplug package
that serves dist/ and wasm/ on port 8080 with correct MIME types.
Update dev:buttplug to use it instead of docker compose, avoiding a
full Rust/WASM Docker build on every dev start.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-08 13:55:31 +01:00
parent f880aa5957
commit ced0a08da3
3 changed files with 43 additions and 2 deletions

View File

@@ -10,7 +10,8 @@
],
"scripts": {
"build": "vite build",
"build:wasm": "wasm-pack build --out-dir wasm --out-name index --target bundler --release"
"build:wasm": "wasm-pack build --out-dir wasm --out-name index --target bundler --release",
"serve": "node serve.mjs"
},
"dependencies": {
"eventemitter3": "^5.0.4",