Gulp: Bump website version when publishing.

This commit is contained in:
Jürg Lehni 2017-04-21 12:54:40 +02:00
parent 153c36c9ce
commit 11e9437b37

View file

@ -115,8 +115,18 @@ gulp.task('publish:website', function() {
}
});
gulp.task('publish:website:build',
['publish:website:docs', 'publish:website:zip', 'publish:website:assets']);
gulp.task('publish:website:build', [
'publish:website:json', 'publish:website:docs',
'publish:website:zip', 'publish:website:assets'
]);
gulp.task('publish:website:json', ['publish:version'], function() {
return gulp.src([sitePath + '/package.json'])
.pipe(jsonEditor({
version: options.version
}, jsonOptions))
.pipe(gulp.dest(sitePath));
});
gulp.task('publish:website:docs:clean', function() {
return del([ referencePath + '/*' ], { force: true });