Skip to content

Commit

Permalink
gulp copy task: add options to allow for subdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
schuer committed Mar 14, 2018
1 parent c5ca66d commit 9d5ff87
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gulpfile.js/tasks/copy.js
Expand Up @@ -13,7 +13,10 @@ const task = (cb) => {
let tasks = [];
// loop through copy tasks (see config) and fill an array with results from copy functions (promises!)
_.forEach(config.copy, function (v) {
tasks.push(() => copy(v.src, v.dest, {}).then((res) => {
tasks.push(() => copy(v.src, v.dest, {
parents: true,
nodir: true
}).then((res) => {
if (res.length > 0) {
log(colors.white('Copied ' + v.title + ': ' + colors.magenta(res.length)));
}
Expand Down

0 comments on commit 9d5ff87

Please sign in to comment.