Skip to content

Commit

Permalink
fix(api option): exclude.default.server.files, introduced with gulp v…
Browse files Browse the repository at this point in the history
…4 upgrade
  • Loading branch information
jyounce committed Nov 2, 2017
1 parent c6056e8 commit f386547
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/helpers/tasks.coffee
Expand Up @@ -11,10 +11,11 @@ module.exports = (config, gulp={}) ->
getTasks = (tasksCb, type, lang, locs) -> getTasks = (tasksCb, type, lang, locs) ->
tasks = [] tasks = []
locs.forEach (v1) -> locs.forEach (v1) ->
['rb','app'].forEach (v2) -> for v2 in ['rb','app']
tasks.push src = config.glob.src[v2][v1][type][lang]
src: config.glob.src[v2][v1][type][lang] dest = config.dist[v2][v1][type].dir
dest: config.dist[v2][v1][type].dir continue unless src and src.length # gulp 4 requires a src value
tasks.push { src, dest }
tasks.forEach (v, i) -> tasks.forEach (v, i) ->
tasks[i] = -> tasksCb v.src, v.dest tasks[i] = -> tasksCb v.src, v.dest
tasks tasks
Expand Down

0 comments on commit f386547

Please sign in to comment.