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
Watch mode #136
Comments
I think its better to watch files changes with gulp, then use xo with gulp to check code style of changed files, no ? |
I'm using onchange at the moment: onchange '*.js' -i -- xo |
I like this idea. |
I started working on this in #157. I'd love everyone's feedback on the following. Here's how the current watch output looks: Any ideas on how to beautifully separate reports between reruns here? |
Maybe before each new report it could show "lib/controller.js changed", so that it's easily recognizable. |
AVA has a smart watch mode, you could look at how it behaves. I think it clears the screen between runs. |
As for smart watch mode, I considered doing something like AVA, but in XO we have way less complexity. That's why I went with simply re-running the check each time. Do you think it'd be better to just lint changed files?
Might do that as well. @sindresorhus @jamestalmage do you think it's the way to go? |
XO already caches files, so this is handled for you. |
I meant to show lint output only for changed files. |
Didn't find an option for that, and would be awesome.
The text was updated successfully, but these errors were encountered: