Add helper scripts

This commit is contained in:
Andras Schmelczer 2025-06-29 19:01:31 +01:00
parent 5378ffb547
commit 0448e30dd9
2 changed files with 19 additions and 0 deletions

8
scripts/lint.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
set -e
cargo clippy --all-targets --all-features --fix --allow-dirty --allow-staged
cargo fmt --all
echo "Success!"

11
scripts/test.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
set -e
wasm-pack build --target web --features wasm
cargo test --verbose
cargo test --features serde
cargo test --features wasm
wasm-pack test --node --features wasm
echo "Success!"