Add helper scripts
This commit is contained in:
parent
5378ffb547
commit
0448e30dd9
2 changed files with 19 additions and 0 deletions
8
scripts/lint.sh
Executable file
8
scripts/lint.sh
Executable 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
11
scripts/test.sh
Executable 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!"
|
||||
Loading…
Add table
Add a link
Reference in a new issue