This commit is contained in:
raub 2018-01-31 20:59:14 +03:00
parent afad7c360f
commit 0d1c14ecdd
3 changed files with 6 additions and 0 deletions

View File

@ -582,3 +582,7 @@ be used on all platforms to remove single and multiple files and directories.
... ...
'action' : ['<(rm)', '-rf', '<@(rem)'], 'action' : ['<(rm)', '-rf', '<@(rem)'],
``` ```
### cp
For Windows the `/y` flag was embedded.

1
cp.bat Normal file
View File

@ -0,0 +1 @@
copy /y %%1 %%2

View File

@ -51,5 +51,6 @@ module.exports = {
mkdir : process.platform === 'win32' ? `"${thisDir}/mkdir.bat"` : 'mkdir', mkdir : process.platform === 'win32' ? `"${thisDir}/mkdir.bat"` : 'mkdir',
rm : process.platform === 'win32' ? `"${thisDir}/rm.bat"` : 'rm', rm : process.platform === 'win32' ? `"${thisDir}/rm.bat"` : 'rm',
cp : process.platform === 'win32' ? `"${thisDir}/cp.bat"` : 'cp',
}; };