From 1b6a7e0d00703e3da2e1620b5a2b2cba027161de Mon Sep 17 00:00:00 2001 From: Joris Date: Tue, 28 Jan 2020 09:55:58 +0100 Subject: Implement game of life --- deploy | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 deploy (limited to 'deploy') diff --git a/deploy b/deploy new file mode 100755 index 0000000..b3c6d61 --- /dev/null +++ b/deploy @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +set -e +git branch -D pages +git checkout -b pages +rm -f public/game_of_life.js +rm -f public/game_of_life_bg.wasm +rm -f public/game_of_life_bg.wasm.gz +wasm-pack build --release --target web +mv pkg/game_of_life.js public +wasm-opt -O -o public/game_of_life_bg.wasm pkg/game_of_life_bg.wasm +gzip -9 --keep public/game_of_life_bg.wasm +git add . +git commit -m "Deploy pages" +git push --force origin pages +git checkout master +git branch -D pages -- cgit v1.2.3