mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Introduce paper-jsdom and paper-jsdom-canvas submodules.
Relates to #1252
This commit is contained in:
parent
7dea96c6f2
commit
2bac4e71e0
8 changed files with 39 additions and 13 deletions
|
@ -11,18 +11,23 @@
|
|||
*/
|
||||
|
||||
var gulp = require('gulp'),
|
||||
bump = require('gulp-bump'),
|
||||
jsonEditor = require('gulp-json-editor'),
|
||||
git = require('gulp-git-streamed'),
|
||||
run = require('run-sequence'),
|
||||
shell = require('gulp-shell'),
|
||||
options = require('../utils/options.js');
|
||||
|
||||
var jsonOptions = {
|
||||
end_with_newline: true
|
||||
};
|
||||
|
||||
gulp.task('publish', function() {
|
||||
if (options.branch !== 'develop') {
|
||||
throw new Error('Publishing is only allowed on the develop branch.');
|
||||
}
|
||||
return run(
|
||||
'publish:version',
|
||||
'publish:packages',
|
||||
'publish:dist',
|
||||
'publish:commit',
|
||||
'publish:release',
|
||||
|
@ -34,11 +39,25 @@ gulp.task('publish:version', function() {
|
|||
// Reset the version value since we're executing this on the develop branch,
|
||||
// but we don't wan the published version suffixed with '-develop'.
|
||||
options.resetVersion();
|
||||
return gulp.src([ 'package.json' ])
|
||||
.pipe(bump({ version: options.version }))
|
||||
return gulp.src(['package.json'])
|
||||
.pipe(jsonEditor({
|
||||
version: options.version
|
||||
}, jsonOptions))
|
||||
.pipe(gulp.dest('.'));
|
||||
});
|
||||
|
||||
gulp.task('publish:packages', function() {
|
||||
options.resetVersion(); // See 'publish:version'
|
||||
return gulp.src(['packages/**/*.json'])
|
||||
.pipe(jsonEditor({
|
||||
version: options.version,
|
||||
dependencies: {
|
||||
paper: options.version
|
||||
}
|
||||
}, jsonOptions))
|
||||
.pipe(gulp.dest('packages'));
|
||||
});
|
||||
|
||||
gulp.task('publish:dist', ['dist']);
|
||||
|
||||
gulp.task('publish:commit', function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue