From 0448e30dd90c66bc014612ffc604f0b27ddc1af0 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sun, 29 Jun 2025 19:01:31 +0100 Subject: [PATCH] Add helper scripts --- scripts/lint.sh | 8 ++++++++ scripts/test.sh | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100755 scripts/lint.sh create mode 100755 scripts/test.sh 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