Skip to content
Permalink
Browse files

perf(tasks): change copy and compile tasks to run async instead of sync

  • Loading branch information
jyounce committed Aug 19, 2015
1 parent 7305dff commit b1b73d99623cb9e3fd8c8573d5d091c579f7a236
@@ -20,7 +20,7 @@ module.exports = (gulp, config, watchFile={}) ->
runTask watchFile.path, watchFile.rbDistDir

runMulti = ->
tasks.run.sync(
tasks.run.async(
config, runTask,
'scripts', 'coffee',
['client', 'server']
@@ -20,7 +20,7 @@ module.exports = (gulp, config, watchFile={}) ->
runTask watchFile.path, watchFile.rbDistDir

runMulti = ->
tasks.run.sync(
tasks.run.async(
config, runTask,
'scripts', 'es6',
['client', 'server']
@@ -16,10 +16,10 @@ module.exports = (gulp, config, watchFile={}) ->
runTask watchFile.path, watchFile.rbDistDir

runMulti = ->
tasks.run.sync(
tasks.run.async(
config, runTask,
'styles', 'css',
['client'], true
['client']
)

# register task
@@ -20,7 +20,7 @@ module.exports = (gulp, config, watchFile={}) ->
runTask watchFile.path, watchFile.rbDistDir

runMulti = ->
tasks.run.sync(
tasks.run.async(
config, runTask,
'views', 'html',
['client']
@@ -16,10 +16,10 @@ module.exports = (gulp, config, watchFile={}) ->
runTask watchFile.path, watchFile.rbDistDir

runMulti = ->
tasks.run.sync(
tasks.run.async(
config, runTask,
'images', 'all',
['client'], true
['client']
)

# register task
@@ -16,10 +16,10 @@ module.exports = (gulp, config, watchFile={}) ->
runTask watchFile.path, watchFile.rbDistDir

runMulti = ->
tasks.run.sync(
tasks.run.async(
config, runTask,
'scripts', 'js',
['client'], true
['client']
)

# register task
@@ -33,9 +33,9 @@ module.exports = (gulp, config) ->
runMulti = ->
defer = q.defer()
q.all([
tasks.run.sync config, coffeeTask, 'test', 'coffee', ['client']
tasks.run.sync config, es6Task, 'test', 'es6', ['client']
tasks.run.sync config, jsTask, 'test', 'js', ['client']
tasks.run.async config, coffeeTask, 'test', 'coffee', ['client']
tasks.run.async config, es6Task, 'test', 'es6', ['client']
tasks.run.async config, jsTask, 'test', 'js', ['client']
]).done -> defer.resolve()
defer.promise

0 comments on commit b1b73d9

Please sign in to comment.
You can’t perform that action at this time.