Skip to content

Commit

Permalink
fix(gulpfile): git tag on collection completion instead of every file
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoon committed Dec 28, 2017
1 parent 980c154 commit f7ba4d9
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@ var paths = {
};

function versionBump(semver) {
return gulp
.src(['./package.json', './package-lock.json'])
.pipe(bump({ type: semver }))
.pipe(gulp.dest('./'))
.pipe(git.commit('rev package version'))
.pipe(tag_version());
return (
gulp
.src(['./package.json', './package-lock.json'])
.pipe(bump({ type: semver }))
.pipe(gulp.dest('./'))
.pipe(git.commit(semver))
.on('end', function() {
tag_version();
})
);
}

gulp.task('typings', function() {
Expand Down

0 comments on commit f7ba4d9

Please sign in to comment.