examples: add wasm online demo
This commit is contained in:
parent
908ba72812
commit
5a882764f7
7 changed files with 182 additions and 0 deletions
15
examples/jotdown_wasm/Makefile
Normal file
15
examples/jotdown_wasm/Makefile
Normal file
|
@ -0,0 +1,15 @@
|
|||
WASM=pkg/jotdown_wasm_bg.wasm
|
||||
|
||||
SRC=$(shell find src ../../src -name '*.rs')
|
||||
|
||||
${WASM}: ${SRC}
|
||||
wasm-pack build --release --target web
|
||||
|
||||
wasm: ${WASM}
|
||||
|
||||
run: ${WASM}
|
||||
python -m http.server
|
||||
|
||||
clean:
|
||||
rm -rf pkg
|
||||
cargo clean
|
Loading…
Add table
Add a link
Reference in a new issue