-
Notifications
You must be signed in to change notification settings - Fork 35
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
Allow multiple patterns #2
Comments
Good idea! |
Agreed it would be much easier, but if you're stuck with this you can still do it with the current syntax: In my solution I've done this:
See syntax here: https://github.com/isaacs/node-glob#glob-primer |
Any suggested libraries for multiple glob patterns? |
@tomchentw In a similar plugin I wrote, I was able to use |
@QWp6t thanks! This looks interesting |
Released v3.2.0 |
Right now we can only use a single pattern to detect unused files:
It would be nice if we could set an array of patterns. That way we could check if all files in src and certain files in the test directory, for example, are used or not:
I think it would be as easy as replace
glob
withmulti-glob
The text was updated successfully, but these errors were encountered: