Skip to content

Commit 040f047

Browse files
author
Lukas Oppermann
committed
fix cache issue for gulpfile
1 parent 3c23d8d commit 040f047

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

AUTHORS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
98 Lukas Oppermann
1+
100 Lukas Oppermann
22
90 Alexandru Badiu
33
22 Ali Farhadi
44
6 Jonathan Berger

gulpfile.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,13 @@ gulp.task('bump-version', function() {
105105
if (v === undefined) {
106106
v = semver.inc(require('./package.json').version, 'patch');
107107
}
108+
108109
return gulp.src(['./package.json', './bower.json'])
109110
.pipe(prompt.confirm(msg + v))
110111
.pipe(bump({version: v}))
111112
.pipe(shell([
112113
"git shortlog -ns master | awk '$1 >= 1 {print $0}' | cut -d' ' -f2- > AUTHORS",
113-
"git add AUTHORS ./package.json ./bower.json"
114+
"git add AUTHORS ./package.json ./bower.json && git commit -m'bump to version v"+v+"'"
114115
]))
115116
.pipe(gulp.dest('./'));
116117
});
@@ -119,9 +120,9 @@ gulp.task('tag-version', ['bump-version'], function() {
119120
var args = minimist(process.argv.slice(3));
120121
var v = args.v || args.version;
121122
if (v === undefined) {
123+
delete require.cache[require.resolve('./package.json')];
122124
v = require('./package.json').version;
123125
}
124-
125126
return gulp.src('')
126127
.pipe(shell([
127128
'git tag v' + v

0 commit comments

Comments
 (0)