Add watch
and install-dev-deps
recipes (#87)
This commit is contained in:
parent
5a5209fb5c
commit
a44640b613
16
justfile
16
justfile
@ -17,6 +17,9 @@ build:
|
|||||||
check:
|
check:
|
||||||
cargo check
|
cargo check
|
||||||
|
|
||||||
|
watch command='test':
|
||||||
|
cargo watch {{command}}
|
||||||
|
|
||||||
version = `sed -En 's/version[[:space:]]*=[[:space:]]*"([^"]+)"/v\1/p' Cargo.toml`
|
version = `sed -En 's/version[[:space:]]*=[[:space:]]*"([^"]+)"/v\1/p' Cargo.toml`
|
||||||
|
|
||||||
publish: lint clippy test
|
publish: lint clippy test
|
||||||
@ -37,15 +40,16 @@ done BRANCH:
|
|||||||
git pull --rebase github master
|
git pull --rebase github master
|
||||||
git branch -d {{BRANCH}}
|
git branch -d {{BRANCH}}
|
||||||
|
|
||||||
|
install-dev-deps:
|
||||||
|
rustup install nightly
|
||||||
|
rustup update nightly
|
||||||
|
rustup run nightly cargo install -f clippy
|
||||||
|
cargo install -f cargo-watch
|
||||||
|
cargo install -f cargo-check
|
||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
rustup run nightly cargo clippy
|
rustup run nightly cargo clippy
|
||||||
|
|
||||||
install-clippy:
|
|
||||||
rustup run nightly cargo install clippy
|
|
||||||
|
|
||||||
install-nightly:
|
|
||||||
rustup install nightly
|
|
||||||
|
|
||||||
sloc:
|
sloc:
|
||||||
@cat src/*.rs | wc -l
|
@cat src/*.rs | wc -l
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user