Skip to main content

πŸ› οΈ 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.