Skip to content

Commit

Permalink
just: add basic development setup commmand
Browse files Browse the repository at this point in the history
  • Loading branch information
BrewingWeasel committed Nov 17, 2023
1 parent d892a94 commit 7818f84
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,17 @@ test:
cargo test

check: test lint

_install program command:
#!/usr/bin/env sh
if command -v {{program}} &> /dev/null; then
echo "{{program}} is already installed"
else
{{command}}
fi
_cargoinstall program: (_install program replace("cargo install program", "program", program) )

# Set up development related tools
setup-dev: (_cargoinstall "leptosfmt") (_cargoinstall "trunk") (_install "cargo-tauri" "cargo install tauri-cli") (_install "cargo-clippy" "rustup component add clippy")
# TODO: probably lots more that I'm forgetting

0 comments on commit 7818f84

Please sign in to comment.