Skip to content

Commit

Permalink
Improved gulp chrome distribution task
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeDane committed Oct 17, 2015
1 parent 5542253 commit 1368add
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ gulp.task('default', ['dist-chrome'], function(callback) {
gulp.task('dist-chrome-pre', ['build-chrome'], function(callback) {

// copy files to temporary directory
gulp.src('./build/chrome/*.*').pipe(gulp.dest('./build/chrome/temp'));
gulp.src('./build/chrome/**').pipe(gulp.dest('./build/chrome/temp'));

// copy images to temporary directory
gulp.src('./build/chrome/images/icon_*.*').pipe(gulp.dest('./build/chrome/temp/images'));
//gulp.src('./build/chrome/images/icon_*.*').pipe(gulp.dest('./build/chrome/temp/images'));

// minify userscript
gulp.src('build/chrome/*.js')
Expand All @@ -50,7 +50,7 @@ gulp.task('dist-chrome-pre', ['build-chrome'], function(callback) {

// publish distribution for Chrome
gulp.task('dist-chrome', ['dist-chrome-pre'], function(callback) {

console.log('zipping chrome files');
// compress chrome build into a distribution zip
gulp.src('build/chrome/temp/**')
.pipe(zip('chrome-extension-v' + getPackageDetails().version + '.zip'))
Expand Down

0 comments on commit 1368add

Please sign in to comment.