examples: add wasm online demo

This commit is contained in:
Noah Hellman 2023-02-05 19:41:11 +01:00
parent 908ba72812
commit 5a882764f7
7 changed files with 182 additions and 0 deletions

View 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