From a44640b613a2561a491a77ef997193287ff947d2 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Sat, 12 Nov 2016 10:28:47 -0800 Subject: [PATCH] Add `watch` and `install-dev-deps` recipes (#87) --- justfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/justfile b/justfile index 151a4a8..1175b05 100644 --- a/justfile +++ b/justfile @@ -17,6 +17,9 @@ build: check: cargo check +watch command='test': + cargo watch {{command}} + version = `sed -En 's/version[[:space:]]*=[[:space:]]*"([^"]+)"/v\1/p' Cargo.toml` publish: lint clippy test @@ -37,15 +40,16 @@ done BRANCH: git pull --rebase github master 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: rustup run nightly cargo clippy -install-clippy: - rustup run nightly cargo install clippy - -install-nightly: - rustup install nightly - sloc: @cat src/*.rs | wc -l