mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-30 07:39:50 -04:00
Some tweaks on publishing scripts.
This commit is contained in:
parent
118deea20b
commit
966425d962
3 changed files with 12 additions and 6 deletions
gulp/tasks
|
@ -26,6 +26,7 @@ var packages = ['paper-jsdom', 'paper-jsdom-canvas'],
|
|||
sitePath = path.resolve('../paperjs.org'),
|
||||
referencePath = sitePath + '/content/08-Reference',
|
||||
downloadPath = sitePath + '/content/11-Download',
|
||||
assetPath = sitePath + '/assets/js',
|
||||
releaseMessage = null,
|
||||
jsonOptions = {
|
||||
end_with_newline: true
|
||||
|
@ -115,7 +116,7 @@ gulp.task('publish:website', function() {
|
|||
});
|
||||
|
||||
gulp.task('publish:website:build',
|
||||
['publish:website:docs', 'publish:website:zip']);
|
||||
['publish:website:docs', 'publish:website:zip', 'publish:website:lib']);
|
||||
|
||||
gulp.task('publish:website:docs:clean', function() {
|
||||
return del([ referencePath + '/*' ], { force: true });
|
||||
|
@ -134,6 +135,12 @@ gulp.task('publish:website:zip', ['publish:version'], function() {
|
|||
.pipe(gulp.dest(downloadPath));
|
||||
});
|
||||
|
||||
gulp.task('publish:website:lib', ['publish:version'], function() {
|
||||
return gulp.src('dist/paper-full.js')
|
||||
.pipe(rename({ basename: 'paper' }))
|
||||
.pipe(gulp.dest(assetPath));
|
||||
});
|
||||
|
||||
gulp.task('publish:website:push', ['publish:version'], function() {
|
||||
var opts = { cwd: sitePath };
|
||||
return gulp.src(sitePath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue