From 0ae4cd6630998ea42f033d98eb4c9d8016600855 Mon Sep 17 00:00:00 2001 From: Boshen Date: Wed, 30 Oct 2024 11:50:54 +0800 Subject: [PATCH] chore(justfile): improve watch command --- .ignore | 15 +++++++++------ justfile | 5 ++++- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.ignore b/.ignore index c9c80dcc8..95338c781 100644 --- a/.ignore +++ b/.ignore @@ -1,6 +1,9 @@ -# For cargo-watch -*/tasks/coverage/test262/**/* -*/tasks/coverage/babel/**/* -*/tasks/coverage/typescript/**/* -*/target/**/* -*/node_modules/**/* +# For watchexec https://github.com/watchexec/watchexec/tree/main/crates/cli#features + +target/** +**/node_modules/** + +tasks/coverage/test262/** +tasks/coverage/babel/** +tasks/coverage/typescript/** +tasks/prettier_conformance/prettier/** diff --git a/justfile b/justfile index 19a66d49c..bf6810391 100755 --- a/justfile +++ b/justfile @@ -43,7 +43,10 @@ install-hook: chmod +x .git/hooks/pre-commit watch *args='': - watchexec {{args}} + watchexec --no-vcs-ignore {{args}} + +watch-check: + just watch "'cargo check; cargo clippy'" # Run the example in `parser`, `formatter`, `linter` example tool *args='':