Skip to content

Instantly share code, notes, and snippets.

@davidedelpapa
Created July 25, 2020 13:09
Show Gist options
  • Save davidedelpapa/a630a1a3bb8e12180fa1d92d28841661 to your computer and use it in GitHub Desktop.
Save davidedelpapa/a630a1a3bb8e12180fa1d92d28841661 to your computer and use it in GitHub Desktop.
#!/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