diff --git a/mandelbrot.sublime-project b/mandelbrot.sublime-project index 24db303..f47dd4e 100644 --- a/mandelbrot.sublime-project +++ b/mandelbrot.sublime-project @@ -4,5 +4,11 @@ { "path": "." } + ], + "build_systems": [ + { + "name": "Build wasm", + "shell_cmd": "yarn build:wasm" + } ] } diff --git a/scripts/build/wasm.sh b/scripts/build/wasm.sh index 15e9ff0..0e7f21a 100755 --- a/scripts/build/wasm.sh +++ b/scripts/build/wasm.sh @@ -1,4 +1,9 @@ #!/bin/bash cd wasm -wasm-pack build --release --out-dir=../src/wasm + +build () { + wasm-pack build --release --out-dir=../src/wasm +} + +build || export PATH=$PATH:$HOME/.cargo/bin && build