This project uses npm and the rust nightly channel.
Compiles all the rust and webassembly and populates the wasm/
and public/wasm/
folders.
The files in wasm/
are packaged by webpack.
The files in public/wasm
are treated as static assets.
Removes all files unecessary to build the project, ie: .wasm
files or the dist/
folder.
Builds the project to the bundle/
folder so it's easier to deploy.
Runs build.sh
and uses webpack
to build the project.
Runs node server.js
to host the project after it has been built.
Runs webpack --watch
.
NOTE Webpack watches for changes in rust files, but does not compile them.
In order to see changes made to the rust code, the webassembly must be rebuilt by calling ./build.sh
.