mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-28 00:42:54 -05: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
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
/node_modules/
|
/node_modules/
|
||||||
/dist/*/
|
/dist/*/
|
||||||
|
/.nvmrc
|
||||||
|
|
6
.gitmodules
vendored
6
.gitmodules
vendored
|
@ -1,3 +1,9 @@
|
||||||
[submodule "jsdoc"]
|
[submodule "jsdoc"]
|
||||||
path = gulp/jsdoc
|
path = gulp/jsdoc
|
||||||
url = https://github.com/paperjs/jsdoc.git
|
url = https://github.com/paperjs/jsdoc.git
|
||||||
|
[submodule "paper-jsdom"]
|
||||||
|
path = packages/paper-jsdom
|
||||||
|
url = https://github.com/paperjs/paper-jsdom.git
|
||||||
|
[submodule "paper-jsdom-canvas"]
|
||||||
|
path = packages/paper-jsdom-canvas
|
||||||
|
url = https://github.com/paperjs/paper-jsdom-canvas.git
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
"gulpfile.js",
|
"gulpfile.js",
|
||||||
"gulp",
|
"gulp",
|
||||||
"node_modules",
|
"node_modules",
|
||||||
|
"packages",
|
||||||
"projects",
|
"projects",
|
||||||
"src",
|
"src",
|
||||||
"test",
|
"test",
|
||||||
|
|
|
@ -11,18 +11,23 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var gulp = require('gulp'),
|
var gulp = require('gulp'),
|
||||||
bump = require('gulp-bump'),
|
jsonEditor = require('gulp-json-editor'),
|
||||||
git = require('gulp-git-streamed'),
|
git = require('gulp-git-streamed'),
|
||||||
run = require('run-sequence'),
|
run = require('run-sequence'),
|
||||||
shell = require('gulp-shell'),
|
shell = require('gulp-shell'),
|
||||||
options = require('../utils/options.js');
|
options = require('../utils/options.js');
|
||||||
|
|
||||||
|
var jsonOptions = {
|
||||||
|
end_with_newline: true
|
||||||
|
};
|
||||||
|
|
||||||
gulp.task('publish', function() {
|
gulp.task('publish', function() {
|
||||||
if (options.branch !== 'develop') {
|
if (options.branch !== 'develop') {
|
||||||
throw new Error('Publishing is only allowed on the develop branch.');
|
throw new Error('Publishing is only allowed on the develop branch.');
|
||||||
}
|
}
|
||||||
return run(
|
return run(
|
||||||
'publish:version',
|
'publish:version',
|
||||||
|
'publish:packages',
|
||||||
'publish:dist',
|
'publish:dist',
|
||||||
'publish:commit',
|
'publish:commit',
|
||||||
'publish:release',
|
'publish:release',
|
||||||
|
@ -34,11 +39,25 @@ gulp.task('publish:version', function() {
|
||||||
// Reset the version value since we're executing this on the develop branch,
|
// Reset the version value since we're executing this on the develop branch,
|
||||||
// but we don't wan the published version suffixed with '-develop'.
|
// but we don't wan the published version suffixed with '-develop'.
|
||||||
options.resetVersion();
|
options.resetVersion();
|
||||||
return gulp.src([ 'package.json' ])
|
return gulp.src(['package.json'])
|
||||||
.pipe(bump({ version: options.version }))
|
.pipe(jsonEditor({
|
||||||
|
version: options.version
|
||||||
|
}, jsonOptions))
|
||||||
.pipe(gulp.dest('.'));
|
.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:dist', ['dist']);
|
||||||
|
|
||||||
gulp.task('publish:commit', function() {
|
gulp.task('publish:commit', function() {
|
||||||
|
|
14
package.json
14
package.json
|
@ -36,19 +36,15 @@
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=4.0.0 <8.0.0"
|
"node": ">=4.0.0 <8.0.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
|
||||||
"canvas": "^1.3.5",
|
|
||||||
"jsdom": "^9.4.0",
|
|
||||||
"source-map-support": "^0.4.0"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"acorn": "~0.5.0",
|
"acorn": "~0.5.0",
|
||||||
|
"canvas": "^1.3.5",
|
||||||
"del": "^2.2.1",
|
"del": "^2.2.1",
|
||||||
"gulp": "^3.9.1",
|
"gulp": "^3.9.1",
|
||||||
"gulp-bump": "^2.2.0",
|
|
||||||
"gulp-cached": "^1.1.0",
|
"gulp-cached": "^1.1.0",
|
||||||
"gulp-git-streamed": "^1.8.0",
|
"gulp-git-streamed": "^1.8.0",
|
||||||
"gulp-jshint": "^2.0.0",
|
"gulp-jshint": "^2.0.0",
|
||||||
|
"gulp-json-editor": "^2.2.1",
|
||||||
"gulp-prepro": "^2.4.0",
|
"gulp-prepro": "^2.4.0",
|
||||||
"gulp-qunits": "^2.1.1",
|
"gulp-qunits": "^2.1.1",
|
||||||
"gulp-rename": "^1.2.2",
|
"gulp-rename": "^1.2.2",
|
||||||
|
@ -61,6 +57,7 @@
|
||||||
"gulp-whitespace": "^0.1.0",
|
"gulp-whitespace": "^0.1.0",
|
||||||
"gulp-zip": "^3.2.0",
|
"gulp-zip": "^3.2.0",
|
||||||
"husky": "^0.11.4",
|
"husky": "^0.11.4",
|
||||||
|
"jsdom": "^9.4.0",
|
||||||
"jshint": "^2.9.2",
|
"jshint": "^2.9.2",
|
||||||
"jshint-summary": "^0.4.0",
|
"jshint-summary": "^0.4.0",
|
||||||
"merge-stream": "^1.0.0",
|
"merge-stream": "^1.0.0",
|
||||||
|
@ -70,14 +67,11 @@
|
||||||
"require-dir": "^0.3.0",
|
"require-dir": "^0.3.0",
|
||||||
"resemblejs": "^2.2.1",
|
"resemblejs": "^2.2.1",
|
||||||
"run-sequence": "^1.2.2",
|
"run-sequence": "^1.2.2",
|
||||||
|
"source-map-support": "^0.4.0",
|
||||||
"stats.js": "0.16.0",
|
"stats.js": "0.16.0",
|
||||||
"straps": "^2.1.0"
|
"straps": "^2.1.0"
|
||||||
},
|
},
|
||||||
"browser": {
|
"browser": {
|
||||||
"canvas": false,
|
|
||||||
"jsdom": false,
|
|
||||||
"jsdom/lib/jsdom/living/generated/utils": false,
|
|
||||||
"source-map-support": false,
|
|
||||||
"./dist/node/self.js": false,
|
"./dist/node/self.js": false,
|
||||||
"./dist/node/extend.js": false
|
"./dist/node/extend.js": false
|
||||||
},
|
},
|
||||||
|
|
1
packages/paper-jsdom
Submodule
1
packages/paper-jsdom
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 2bed95b950805864a91999afeaed469ac4403338
|
1
packages/paper-jsdom-canvas
Submodule
1
packages/paper-jsdom-canvas
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 807961a794f920e107c483ce5301867af8c0cb27
|
|
@ -14,6 +14,9 @@
|
||||||
"path": "../gulp",
|
"path": "../gulp",
|
||||||
"folder_exclude_patterns": ["jsdoc"]
|
"folder_exclude_patterns": ["jsdoc"]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "../packages",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "../travis",
|
"path": "../travis",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue