Skip to content

Commit 74aae0a

Browse files
committed
Gulp: update README.md version number
1 parent 07f78d5 commit 74aae0a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

gulpfile.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ gulp.task('js', function(done) {
3939
});
4040

4141
/**
42-
* Updates version number in credit comments and window variable.
42+
* Updates version number in credit comments, window variable and README.md
4343
*/
4444
gulp.task('update-version', function(done){
4545
gulp.src([
@@ -51,6 +51,11 @@ gulp.task('update-version', function(done){
5151
.pipe(replace(/(fullPage )([\d\.]+)/g, "$1" + fpPackage.version))
5252
.pipe(gulp.dest('./src/'));
5353

54+
// updating readme version
55+
gulp.src('./README.md')
56+
.pipe(replace(/(fullPage.js-v)([\d\.]+)/g, "$1" + fpPackage.version))
57+
.pipe(gulp.dest('./'));
58+
5459
done();
5560
});
5661

0 commit comments

Comments
 (0)