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

How to apply filter on files only? #138

Open
wildan-m opened this issue Aug 16, 2020 · 0 comments
Open

How to apply filter on files only? #138

wildan-m opened this issue Aug 16, 2020 · 0 comments

Comments

@wildan-m
Copy link

Hi,

I have a folder containing js libraries.

source\libs\autoComplete.js\js\autoComplete.min.js
source\libs\autoComplete.js\css\autoComplete.css

How could I filter the files without filtering the folder name?

I've tried this:

ncp' 'source/libs/' 'build/source/libs' --filter="^(.(?!.*\.js$|.*\.json))*$"

But it also filters the folder. The folder source\libs\autoComplete.js\ does not exist in the destination.

Thanks

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

1 participant