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 copy the directory itself and not the files within it? #15

Open
aderchox opened this issue Jul 5, 2022 · 1 comment
Open

How to copy the directory itself and not the files within it? #15

aderchox opened this issue Jul 5, 2022 · 1 comment

Comments

@aderchox
Copy link

aderchox commented Jul 5, 2022

If I do copy-and-watch --watch assets/ dist/ it will copy nothing, while I expect the assets/ folder to be copied. Also if I do copy-and-watch --watch assets/* dist/ It will copy the files inside the assets folder and not itself. Is it possible to copy and watch a directory itself?

@niclaslindberg
Copy link

niclaslindberg commented Jan 11, 2023

Also interested in this functionality.
In my scenario there are two directories to synch and I would like the folder names to be included.

yarn copy-and-watch "monitoring/**" "packages/*Key" dist

I would like the result to be

dist/
  monitoring/
  packages/

What about allowing **/toplevel/* not stripping out toplevel segment?

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

2 participants