Created
October 9, 2015 00:09
-
-
Save meetbryce/45d7fc71dae89071ae4e to your computer and use it in GitHub Desktop.
This file contains 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
var gulp = require('gulp'); | |
var electron = require('gulp-atom-electron'); | |
var del = require('del'); | |
gulp.task('clean:dist', function () { | |
return del(['dist/**', '!dist']); | |
}) | |
gulp.task('default',['clean:dist'], function () { | |
var electronConfig = { version: '0.33.6', platform: 'darwin', token: '326cd8521a4fa11371bb89e1bec56a03f704a7e5' }; | |
return gulp.src('src/**') | |
.pipe(electron(electronConfig)) | |
.pipe(electron.dest('dist', electronConfig)); | |
}); | |
gulp.task('archive', function () { | |
return gulp.src('src/**') | |
.pipe(electron({ version: '0.33.6', platform: 'darwin', token: '326cd8521a4fa11371bb89e1bec56a03f704a7e5' })) | |
.pipe(electron.zfsdest('dist.zip')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment