π οΈ Build Scripts
npm run buildβ
Builds both:
- the WASM module (
build-wasm) - the Vite production bundle (
vite build)
npm run build-wasm && vite build
Used for completing production builds for deployment.
npm run build-jsβ
Only builds the JavaScript/Vite project.
vite build
Useful if the WASM module didnβt change.
npm run previewβ
Runs Viteβs local preview server for inspecting builds:
vite preview
Useful when you have built the frontend and want to see what it could look like in production.
npm run build-wasmβ
Runs the WASM release build:
make -C src/wasm build
Creates an optimized WebAssembly module using the build script available in the orchestrator Makefile.
npm run build-wasm:debugβ
Runs the debug build:
make -C src/wasm debug
Includes debug symbols and no optimizations. Recommended for debugging logic issues inside C++ code. Also uses a script from the orchestrator Makefile.