build/test/deploy scripts

This commit is contained in:
Max Bradbury 2020-07-03 15:40:22 +01:00
parent 2684d158bd
commit 6706ab5acb
4 changed files with 12 additions and 2 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
/index.html
/target/
/Cargo.lock
/mixsy.zip

3
build.sh Executable file → Normal file
View File

@ -2,5 +2,4 @@
pug index.pug
set -ex
wasm-pack build --target web
python3 -m http.server
wasm-pack build --target web

6
deploy.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
./build.sh
zip -r mixsy.zip README.md index.html pkg
butler push mixsy.zip ruin/mixsy:html

4
test.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
./build.sh
python3 -m http.server