-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 support #70
Comments
You could probably just use the onchange module. {
"scripts": {
"test": "onchange 'test/*.js' -- ava test/*.js"
}
} |
or nodemon
|
In fact I would be cool, if ava could run only changed test in a file, not a whole file with tests. |
I think the common use case is watching the source directory and the test directory (not only the current existing files). And I suppose that the sources change far more often than the test. |
There is also the watch unix command. But none of these can be compared to ava supporting filewatching internally. I love the fast feedback loop |
This is now PR welcome. Should use https://github.com/paulmillr/chokidar. @tomazzaman has indicated in #458 that he's interested in working on this. |
@sindresorhus Are you sure AVA is ready for this feature? We have lots of perf/babel issues on the table to solve. Watch feature is not that important like providing great experience (especially first experience) to the users. |
@vdemedes I'm afraid of that too, but I'm thinking we add it undocumented, dogfood it, and only document it when we feel it's stable enough and we're ready to take on the addition support burden. And many people have told me |
@sindresorhus Ok, sounds like a plan ;) |
I too come from Mocha-world and this was by far bigger selling point than speed. I want continuous feedback loop more than speed. |
@tomazzaman Thanks. The more usage feedback we get on issues, the easier it is for us to make informed choices :) Feel free to comment opinions on any other issue. You might also like #115. |
Ha! Indeed I like it, but not sure whether my JS skills are there yet. I've written a few watchers for my own projects (so I know a thing or two about it), but nothing as complex as #115. Maybe I'm just needlessly intimidated though :) |
@tomazzaman I didn't mean you should do it. Just that you might find the idea interesting ;) |
I'd be happy to take this on. I've used watchers extensively when building dev stacks. |
@novemberborn @sindresorhus I've created a PR #465 , just a basic watcher for now, but works. I'd be more than happy to hear your feedback to learn whether I'm on the right track |
This needs to be taken into account: babel/babel#3307 |
Is this a plan?
The text was updated successfully, but these errors were encountered: