Skip to content

Commit

Permalink
cargo watch should ignore .cargo and target dirs
Browse files Browse the repository at this point in the history
Co-authored-by: Zeek <[email protected]>
  • Loading branch information
Harlan T Wood and dauphin3 committed Jul 4, 2024
1 parent 99638f2 commit 4586c2e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ checks () {
}

test_watch () {
shell cargo watch -- bin/run test
shell cargo watch --ignore target --ignore .cargo -- bin/run test
}

test_watch_clear () {
shell cargo watch --clear -- bin/run test
shell cargo watch --ignore target --ignore .cargo --clear -- bin/run test
}

test () {
Expand All @@ -64,11 +64,11 @@ test_metal () {
}

build_watch () {
shell cargo watch -- bin/run build
shell cargo watch --ignore target --ignore .cargo -- bin/run build
}

build_watch_clear () {
shell cargo watch --clear -- bin/run build
shell cargo watch --ignore target --ignore .cargo --clear -- bin/run build
}

build () {
Expand All @@ -95,7 +95,7 @@ clippy () {
}

clippy_watch () {
shell cargo watch --clear -- bin/run clippy
shell cargo watch --ignore target --ignore .cargo --clear -- bin/run clippy
}

format () {
Expand Down

0 comments on commit 4586c2e

Please sign in to comment.