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

Add ability to filter files using a pattern #3

Open
shaddyz opened this issue May 18, 2016 · 5 comments
Open

Add ability to filter files using a pattern #3

shaddyz opened this issue May 18, 2016 · 5 comments

Comments

@shaddyz
Copy link

shaddyz commented May 18, 2016

This tool is almost exactly what I need, however, it's lacking the ability to filter the files that are synchronized. I'd like to be able to direct the tool to only sync html files for instance.

@ghost
Copy link

ghost commented Sep 5, 2016

Exactly! I like to sync folder but have to exclude some auto. generated files.

I suggest a syntax like this: sync-files dir1/ dir2/ --exclude=*.css

@gregjacobs
Copy link

gregjacobs commented Oct 11, 2016

This would be a great feature.

How about using the minimatch globbing syntax like other file utilities? Would be great to be able to write something like this:

sync-files "src/**/*.+(html|js)" "build/"

node-glob should be able to help with this

@AndyOGo
Copy link

AndyOGo commented Nov 3, 2016

@shaddyz @Dotmagic @gregjacobs
I recently had the exact same issue.
So I developed my own glob based version.
go check it, hope it helps sync-glob

@shaddyz
Copy link
Author

shaddyz commented Nov 4, 2016

@AndyOGo looks cool! unfortunately i'm working on a different project now so I don't have a need for it at the moment, but it looks like it will solve the problem. thank you! 👍

@AndyOGo
Copy link

AndyOGo commented Nov 4, 2016

@shaddyz thanks, np. Yeah, I hope it solves it well^^

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

No branches or pull requests

3 participants