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

Pass CLI options through to chokidar #1979

Closed
1 of 7 tasks
ninthspace opened this issue Sep 14, 2016 · 3 comments
Closed
1 of 7 tasks

Pass CLI options through to chokidar #1979

ninthspace opened this issue Sep 14, 2016 · 3 comments

Comments

@ninthspace
Copy link

Help us to manage our issues by answering the following:

Describe your issue:

I'm using Vagrant, which mounts my local Mac filesystem as NFS. To watch for changes I would ordinarily use something like this:

riot --watch --config riot.config.js

However, for watching to work with NFS, it requires polling. I'm therefore currently using chokidar directly as follows:

chokidar -p 'resources/assets/js/riot/*.*' -c 'riot --config riot.config.js'

It would be nice for us to be able to pass (selected?) options from riot through to chokidar, e.g.:

riot --watch --polling --config riot.config.js

or otherwise specify in the riot.config.js file.

Can you reproduce the issue?

Yes, see above.

On which browser/OS does the issue appear?

N/A.

Which version of Riot does it affect?

riot-cli v2.6.1

How would you tag this issue?

  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance
@GianlucaGuarini
Copy link
Member

thanks I have moved this issue here riot/cli#20

@GianlucaGuarini
Copy link
Member

I have checked this issue and I have decided that this can be easily solved outside of riot-cli https://github.com/paulmillr/chokidar/blob/5d56de2277e9e16c121a7528f6ce87fa9ff4991f/index.js#L95

@ninthspace
Copy link
Author

Works great thanks! I've made a PR to chokidar so it is properly documented there.

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

No branches or pull requests

2 participants