-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add build system and try to fix path if command not found
- Loading branch information
1 parent
0edfe12
commit 7f9cc4d
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,11 @@ | |
{ | ||
"path": "." | ||
} | ||
], | ||
"build_systems": [ | ||
{ | ||
"name": "Build wasm", | ||
"shell_cmd": "yarn build:wasm" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |