Skip to content

Commit

Permalink
clean cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
goastler committed Jun 18, 2024
1 parent 408cfdd commit f0739fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"test:crate": "f() { npm run docker -- \"cd crates/$1 && cargo test\" ;}; f",
"test:crate:all": "eval $(npm --silent run ls:crates | xargs -I {} printf 'npm run test:crate -- {}\n' | sed ':a;N;$!ba;s/\\n/ \\&\\& /g')",
"test": "npm run test:crate:all && npm run test:contract:all",
"clean": "npm run docker -- cargo clean",
"clean": "npm run clean:target && npm run clean:cache",
"clean:target": "npm run docker -- cargo clean",
"clean:cache": "rm -rf cargo-cache/*",
"rustfmt": "eval $(npm --silent run ls:all | xargs -I {} printf 'npm run docker -- \"cd {} && cargo fmt --all -- --check\"\n' | sed ':a;N;$!ba;s/\\n/ \\&\\& /g')",
"clippy": "eval $(npm --silent run ls:all | xargs -I {} printf 'npm run docker -- \"cd {} && cargo clippy -- -D warnings -A clippy::too_many_arguments\"\n' | sed ':a;N;$!ba;s/\\n/ \\&\\& /g')",
"ls:crates": "f() { cd crates && find . -maxdepth 1 | tr -d '.' | tr -d '/' | tail -n +2 ;}; f",
Expand Down

0 comments on commit f0739fe

Please sign in to comment.