Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'{event}' for file rename #34

Open
benmonro opened this issue Jun 15, 2016 · 1 comment
Open

'{event}' for file rename #34

benmonro opened this issue Jun 15, 2016 · 1 comment

Comments

@benmonro
Copy link

when I use the following command:

chokidar 'src/**/*.js' 'src/**/*.jsx' -c 'echo "the change is {event}";''

And then rename a file, I get an output for the 'add' but not for the 'unlink'. I'm trying to use chokidar with babel so if a file is renamed, I want to remove the old file from the output dir and transpile the new one.

Here's an example of what I mean:

> chokidar 'src/**/*.js' 'src/**/*.jsx' -c 'echo "the change is {event}"'                                                              
Watching "src/**/*.js", "src/**/*.jsx" ..
unlink:src/blah.js
add:src/foo.js
the change is add

I'd like to have an output for the change is unlink _AND_ the change is add

please advise.

@es128
Copy link
Collaborator

es128 commented Jun 15, 2016

Turn off the debounce which is applied by default.

-d 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants