Skip to content

Commit

Permalink
build: add build system and try to fix path if command not found
Browse files Browse the repository at this point in the history
  • Loading branch information
istudyatuni committed Apr 16, 2022
1 parent 0edfe12 commit 7f9cc4d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions mandelbrot.sublime-project
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,11 @@
{
"path": "."
}
],
"build_systems": [
{
"name": "Build wasm",
"shell_cmd": "yarn build:wasm"
}
]
}
7 changes: 6 additions & 1 deletion scripts/build/wasm.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7f9cc4d

Please sign in to comment.