adds support for filter function#1
Conversation
to provide control over eliminating files like `.DS_Store` on mac or `Thumbs.db` on windows from causing an unexpected result. Also: - adds `exists` function, since directories that do not exist should return `false`. - updated metadata in package.json per latest npm recommendations and conventions - unit tests for filter function - docs for filter function
|
oh, one more thing... I used the |
|
hey @jonschlinkert, this looks nice! one question for ya though... why the preference for excluding |
|
Just my best guess at correct behavior, mainly since |
|
Gotcha. Would you be willing to remove the |
|
PS: I've just added you as a collaborator on the repo and an author on the package. |
yeah no problem. It's it bit heavy-handed in retrospect. I'll update the pr.
thanks! |
|
I removed the |
|
Hah. I was thinking the same thing--this doesn't seem like something @jonschlinkert would add! |
package.json
Outdated
There was a problem hiding this comment.
any reason in particular you've unlocked the deps for mocha/chai?
There was a problem hiding this comment.
bah, sorry I ran an "updater" by accident on package.json, I meant to revert that (and thought I did, so I must have run it twice! fwiw, the reason the . The updater removed mocha is b/c it's not required anywhere in the projectchai wildcard is a hard-coded default I added a long time ago for a reason I can no longer remember.
anyway, I have two strong habits that are hard not to do before I push up: run update and run deps (for lint-deps). but I try to only do this on my own projects though. so again, apologies.
There was a problem hiding this comment.
also I can push up a fix for the deps in a bit. sorry again
There was a problem hiding this comment.
done. please let me know if I missed something. feel free to squash
|
absolutely, won't take more than a minute - just finishing up an obligation first. It will probably be tomorrow. thanks for pinging me! |
|
published! |
|
thanks! |
|
thank you! |
to provide control over eliminating files like
.DS_Storeon mac orThumbs.dbon windows from causing an unexpected result. Also:existsfunction, since directories that do not exist should returnfalse.If this is too much for this lib, no worries. If it's okay, that would be great, I'd love to use this in
verbandgenerate. thanks!