Skip to content

ThibautGeriz/tetris

Repository files navigation

Tetris

Tetris game in Rust WASM.

Requirements

Install RUST: Install Node Install wasm-pack

curl https://sh.rustup.rs -sSf | sh
rustup component add clippy # install linter
rustup component add rustfmt # install formatter
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
brew install node
npm i -g yarn

Commands

wasm-pack build # build
wasm-pack build --release # build for release
cargo test # run the tests
wasm-pack test --firefox --headless # run brower tests
cargo fmt # format the code
cargo clippy # run the linter
yarn start # run the local HTTP server
yarn build # build the site