Skip to content

Instantly share code, notes, and snippets.

@jonburger
Created October 21, 2016 11:12
Show Gist options
  • Save jonburger/ef1e4e0484cef18fd77d6f217fab9716 to your computer and use it in GitHub Desktop.
Save jonburger/ef1e4e0484cef18fd77d6f217fab9716 to your computer and use it in GitHub Desktop.
A gulp task with gulp-surge running in a dependency task doesn't wait for surge to finish uploading :(
gulp.task('surge', ['build'], function() {
var domain = fs.readFileSync('CNAME', 'utf8');
return surge({
project: './dist',
domain: domain
});
});
gulp.task('deploy', ['surge'], function() {
console.log('I run before surge has finished deploying');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment