Closed indfnzo closed 6 years ago
Since apparently, cpy doesn't currently support recursive copying, would it be possible to somehow switch providers from cpy-cli to ncp? Or maybe we could simply create a new util (say, ncopy
), referencing ncp via cli.
Another alternative: a wrapper for fs-extra as nps utils.
Update: I have a working setup with ncopy
exported as another utility under nps-utils. I use it like so:
const { series, ncp } = require('nps-utils');
module.exports = {
scripts: {
someScript: series(
( ... ),
ncp('dist dist2')
)
}
}
This successfully copies all contents of dist
onto dist2
, including subfolders and files inside subfolders.
If you're fine with this implementation, I can make a PR to get this merged.
That looks good to me! Feel free to make a pull request 👍 Be sure to include tests and docs 😀
And thank you!
Can't seem to copy folders with subfolders recursively using the built-in cpy-cli. See https://github.com/sindresorhus/cpy-cli/issues/10.
Project is running on Windows.