From 0d1c14ecdd264a553a98038fcef7913944889ea4 Mon Sep 17 00:00:00 2001 From: raub Date: Wed, 31 Jan 2018 20:59:14 +0300 Subject: [PATCH] added cp --- README.md | 4 ++++ cp.bat | 1 + index.js | 1 + 3 files changed, 6 insertions(+) create mode 100644 cp.bat diff --git a/README.md b/README.md index 4a5acd9..304d1a4 100644 --- a/README.md +++ b/README.md @@ -582,3 +582,7 @@ be used on all platforms to remove single and multiple files and directories. ... 'action' : ['<(rm)', '-rf', '<@(rem)'], ``` + +### cp + +For Windows the `/y` flag was embedded. diff --git a/cp.bat b/cp.bat new file mode 100644 index 0000000..eb6fff7 --- /dev/null +++ b/cp.bat @@ -0,0 +1 @@ +copy /y %%1 %%2 diff --git a/index.js b/index.js index ff7ca43..1822f0b 100644 --- a/index.js +++ b/index.js @@ -51,5 +51,6 @@ module.exports = { mkdir : process.platform === 'win32' ? `"${thisDir}/mkdir.bat"` : 'mkdir', rm : process.platform === 'win32' ? `"${thisDir}/rm.bat"` : 'rm', + cp : process.platform === 'win32' ? `"${thisDir}/cp.bat"` : 'cp', };