zont / copy-and-watch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

aderchox opened this issue · comments

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?

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?