Created
October 21, 2016 11:12
-
-
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 :(
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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