Skip to content

Commit

Permalink
Merge pull request #74 from acousineau/master
Browse files Browse the repository at this point in the history
Fix empty tasks array running default tasks
  • Loading branch information
G͔̟̭̈̃ͫͣͧ̿ͪ̈̂̊͆ͬͫͪ̊͠a̵̳͇̠̥̬̣̹̥̦̳̅ͩ͂̐ͤ̂ͨ͌r̳̦̗͖͓̥̼͙̭̩͍̹̫ͦ̍̾ͯ͒͘í͔͕̳͙̙ͨ͒́̑͐̆ͯ̑̌̍ͯ̈̐͜e̸͉͍͖̮̩̰͈̠̒ͦ̎͋ͮ̍ͭͬͬͤt̝͙͖̪͎̙̫̯̜̲̙̯͍͔ͣ̓̀ͯ͡y̳̜͖̭ͮ͛͗͗ͨ̊̈͒̉͊͐̈ͬ͛͟x̨͍̦̖̞̣͔ͮ̎̆̎͆̋̒ͧ͗͆ͤͣx̸̭̎̐ͨ̈ͯͯ͆͋̈̍ͧ̑ͭ́ͤͫͥx̼͕͎̪͈͙̉̿͗̈̂ͫ̉͑̂̒̅̆́ committed Aug 21, 2015
2 parents 721eccf + 9e68c18 commit 23f5f42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ module.exports = function (options) {
// Synchronous alternative to gulp.run()
function run(tasks) {
if (typeof tasks === 'string') tasks = [tasks]
if (tasks.length === 0) return
if (!(tasks instanceof Array)) throw new Error('Expected task name or array but found: ' + tasks)
cp.spawnSync(process.platform === 'win32' ? 'gulp.cmd' : 'gulp', tasks, { stdio: [0, 1, 2] })
}
Expand Down

0 comments on commit 23f5f42

Please sign in to comment.