chore(justfile): improve watch command

This commit is contained in:
Boshen 2024-10-30 11:50:54 +08:00
parent 854870e296
commit 0ae4cd6630
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1
2 changed files with 13 additions and 7 deletions

15
.ignore
View file

@ -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/**

View file

@ -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='':