mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Gulp: Bump website version when publishing.
This commit is contained in:
parent
153c36c9ce
commit
11e9437b37
1 changed files with 12 additions and 2 deletions
|
@ -115,8 +115,18 @@ gulp.task('publish:website', function() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('publish:website:build',
|
gulp.task('publish:website:build', [
|
||||||
['publish:website:docs', 'publish:website:zip', 'publish:website:assets']);
|
'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() {
|
gulp.task('publish:website:docs:clean', function() {
|
||||||
return del([ referencePath + '/*' ], { force: true });
|
return del([ referencePath + '/*' ], { force: true });
|
||||||
|
|
Loading…
Reference in a new issue