diff options
-rw-r--r-- | .gitlab-ci.yml | 10 | ||||
-rw-r--r-- | README.md | 10 | ||||
-rwxr-xr-x | deploy | 16 | ||||
-rw-r--r-- | src/state.rs | 2 |
4 files changed, 1 insertions, 37 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index a872f80..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,10 +0,0 @@ -image: alpine:latest -pages: - stage: deploy - script: - - echo 'Nothing to do...' - artifacts: - paths: - - public - only: - - pages @@ -7,18 +7,8 @@ with JavaScript. See [the wikipedia page](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life) to get more information about game of life. -## Live - -[https://guyonvarch.gitlab.io/game-of-life](https://guyonvarch.gitlab.io/game-of-life) - ## Getting started ```bash nix-shell --run ./watch ``` - -## Deploy - -```bash -nix-shell --run ./deploy -``` @@ -1,16 +0,0 @@ -#!/usr/bin/env bash -set -e -git branch -D pages || true -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 diff --git a/src/state.rs b/src/state.rs index 5d13902..be6e13b 100644 --- a/src/state.rs +++ b/src/state.rs @@ -4,7 +4,7 @@ use crate::canvas::Canvas; pub struct State { width: u32, height: u32, - cells: Vec::<bool>, + cells: Vec<bool>, } impl State { |