mysticatea / cpx

A cli tool to watch and copy file globs.
MIT License
524 stars 36 forks source link

New: Added support for copying directories #46

Open pavan142 opened 5 years ago

pavan142 commented 5 years ago
  1. fs-extra's copy is used for copying directories
  2. -r or --directory are the command line options for copying directories

Signed-off-by: pa1tirumani btiruman@visteon.com

aleclarson commented 5 years ago

This seems to work as advertised. Thanks! 👍

You can use this by installing @alloc/cpx instead of cpx

aleclarson commented 5 years ago

Note: The --watch flag still does not work with directories 😢

Another way to copy directories is to use foo/bar/**/* to copy all files. And this way works with the --watch flag! 🎉