-
-
Save davidedelpapa/a630a1a3bb8e12180fa1d92d28841661 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
build(){ | |
wasm-pack build --target web | |
} | |
pack(){ | |
rollup ./main.js --format iife --file ./pkg/bundle.js | |
} | |
run(){ | |
python -m "http.server" "8080" & | |
PID=$! | |
echo $PID > .serverpid | |
} | |
build | |
pack | |
run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment