diff --git a/scripts/lint.sh b/scripts/lint.sh new file mode 100755 index 0000000..9c692c8 --- /dev/null +++ b/scripts/lint.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e + +cargo clippy --all-targets --all-features --fix --allow-dirty --allow-staged +cargo fmt --all + +echo "Success!" \ No newline at end of file diff --git a/scripts/test.sh b/scripts/test.sh new file mode 100755 index 0000000..236717c --- /dev/null +++ b/scripts/test.sh @@ -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!" \ No newline at end of file