Skip to content

Instantly share code, notes, and snippets.

@meetbryce
Created October 9, 2015 00:09
Show Gist options
  • Save meetbryce/45d7fc71dae89071ae4e to your computer and use it in GitHub Desktop.
Save meetbryce/45d7fc71dae89071ae4e to your computer and use it in GitHub Desktop.
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