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

Get default ignoreRoot from ignore-by-default #779

Closed
wants to merge 1 commit into from

Conversation

novemberborn
Copy link
Contributor

Hello!

I'm adding --watch support to AVA. Like nodemon it uses Chokidar to watch for changes, and like nodemon it should ignore non-code directories. Initially I copied the ignoreRoot config from here but it seemed like the list of directories to ignore should be in a package of its own. That way multiple projects can share good defaults 💯

This PR switches the default ignoreRoot to a list obtained from the ignore-by-default package. Compared to the original list in nodemon this adds .nyc_output and coverage directories.

I marked this as a refactor, but maybe it should be a feature instead. If so maybe the ignore-by-default dependency should be pinned to an exact release so changes won't impact nodemon.

This requires #778 to land first, otherwise that bug causes test breakage in this PR.

Switches the default ignoreRoot to a list obtained from the ignore-by-default
package. See <https://github.com/novemberborn/ignore-by-default>.

This allows nodemon to tap into a shared list of directories it should ignore
when watching for changes. E.g. compared to the original list it's already been
extended with `.nyc_output` and `coverage` directories.
@remy
Copy link
Owner

remy commented Feb 25, 2016

@novemberborn just wanted to drop a note - I'm aware of your two PRs <3 I need to grab some time to get this merged in, and work out why the travis is failing (though it's likely to be the sheer number and scary race conditions in the tests!).

@novemberborn
Copy link
Contributor Author

@remy thanks for the update!

@remy
Copy link
Owner

remy commented Feb 25, 2016

merged into master.

@remy remy closed this Feb 25, 2016
@novemberborn novemberborn deleted the use-ignore-by-default branch February 26, 2016 11:34
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

Successfully merging this pull request may close these issues.

2 participants