Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Commit

Permalink
fix zips and gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tayvano committed Nov 26, 2016
1 parent 967d82c commit 6464ea1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ gulp build html styles js (staticJS) copy
clean cleans files we don't need that get compiled
getVersion gets version from manifest
zip zips dist folder w/ version number
zipCX zips cx folder w/ version number
bump-patch bumps v from 0.0.1 to 0.0.2
bump-minor bumps v from 0.1.0 to 0.2.0
gulp buildPush no version increase nor tags nor zips: build clean add commit push
gulp prepBump cleans and zips it up: clean bump-patch getV zip zipCX
gulp prepBump cleans and zips it up: clean bump-patch getV zip
add git add
commit git commit without v number
commitV git commit with v number
Expand Down Expand Up @@ -247,16 +246,12 @@ gulp.task('getVersion', function() {

// zips dist folder
gulp.task('zip', ['getVersion'], function() {
return gulp.src( dist + '*' )
return gulp.src( dist + '**/**/*' )
.pipe( plumber ({ errorHandler: onError }))
.pipe( zip ( './dist-' + versionNum + '.zip' ))
.pipe( gulp.dest ( './releases/' ))
.pipe( notify ( onSuccess('Zip Dist ' + versionNum ) ))

})
// zips cx folder
gulp.task('zipCX', ['getVersion'], function() {
return gulp.src( dist_CX + '*' )
return gulp.src( dist_CX + '**/**/*' )
.pipe( plumber ({ errorHandler: onError }))
.pipe( zip ( './chrome-extension-' + versionNum + '.zip' ))
.pipe( gulp.dest ( './releases/' ))
Expand All @@ -268,7 +263,6 @@ gulp.task('zipCX', ['getVersion'], function() {




// add all
gulp.task('add', function () {
return gulp.src('*.js', {read: false})
Expand Down Expand Up @@ -343,16 +337,16 @@ gulp.task('bump-patch', function() { return bumpFunc( 'patch' ) })
gulp.task('bump-minor', function() { return bumpFunc( 'minor' ) })

// Prep for Release
gulp.task('prep', function(cb) { runSequence('clean', ['zip', 'zipCX'], cb); });
gulp.task('prep', function(cb) { runSequence('clean', 'zip', cb); });

// Build, Clean, Push (no v)
gulp.task('buildPush', function(cb) { runSequence('html', 'styles', 'js', 'copy', 'clean', 'add', 'commit', 'push', cb); });

// All and Push
gulp.task('buildBumpPush', function(cb) { runSequence(['html', 'styles', 'js'], 'copy', ['clean', 'bump-patch'], ['zip', 'zipCX'], 'add', 'commitV', 'tag', 'push', cb); });
gulp.task('buildBumpPush', function(cb) { runSequence('html', 'styles', 'js', 'copy', 'clean', 'bump-patch', 'zip', 'add', 'commitV', 'tag', 'push', cb); });

// All and Push Live
gulp.task('buildBumpPushLive', function(cb) { runSequence(['html', 'styles', 'js'], 'copy', ['clean', 'bump-patch'], ['zip', 'zipCX'], 'add', 'commitV', 'tag', 'push', 'pushLive', cb); });
gulp.task('buildBumpPushLive', function(cb) { runSequence('html', 'styles', 'js', 'copy', 'clean', 'bump-patch', 'zip', 'add', 'commitV', 'tag', 'push', 'pushLive', cb); });


gulp.task('default', ['build', 'watch'])
Binary file modified releases/chrome-extension-v3.3.0.zip
Binary file not shown.
Binary file modified releases/dist-v3.3.0.zip
Binary file not shown.

0 comments on commit 6464ea1

Please sign in to comment.