Skip to content

Instantly share code, notes, and snippets.

@jonburger
Created October 21, 2016 11:12
Show Gist options
  • Select an option

  • Save jonburger/ef1e4e0484cef18fd77d6f217fab9716 to your computer and use it in GitHub Desktop.

Select an option

Save jonburger/ef1e4e0484cef18fd77d6f217fab9716 to your computer and use it in GitHub Desktop.

Revisions

  1. jonburger created this gist Oct 21, 2016.
    12 changes: 12 additions & 0 deletions gulp-surge.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    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');
    });