mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Replace extend() with Object.assign()
This commit is contained in:
parent
bf2eada11c
commit
a14e1e4c97
3 changed files with 1 additions and 4 deletions
|
@ -16,7 +16,6 @@ var gulp = require('gulp'),
|
||||||
uncomment = require('gulp-uncomment'),
|
uncomment = require('gulp-uncomment'),
|
||||||
whitespace = require('gulp-whitespace'),
|
whitespace = require('gulp-whitespace'),
|
||||||
del = require('del'),
|
del = require('del'),
|
||||||
extend = require('extend'),
|
|
||||||
options = require('../utils/options.js');
|
options = require('../utils/options.js');
|
||||||
|
|
||||||
// Options to be used in Prepro.js preprocessing through the global __options
|
// Options to be used in Prepro.js preprocessing through the global __options
|
||||||
|
@ -51,7 +50,7 @@ buildNames.forEach(function(name) {
|
||||||
// Note that this would be merge in with already existing
|
// Note that this would be merge in with already existing
|
||||||
// objects.
|
// objects.
|
||||||
return {
|
return {
|
||||||
__options: extend({}, options, buildOptions[name])
|
__options: Object.assign({}, options, buildOptions[name])
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var execSync = require('child_process').execSync,
|
var execSync = require('child_process').execSync,
|
||||||
extend = require('extend'),
|
|
||||||
// Require the __options object, so we have access to the version number and
|
// Require the __options object, so we have access to the version number and
|
||||||
// make amendments, e.g. the release date.
|
// make amendments, e.g. the release date.
|
||||||
options = require('../../src/options.js');
|
options = require('../../src/options.js');
|
||||||
|
|
|
@ -47,7 +47,6 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"acorn": "~0.5.0",
|
"acorn": "~0.5.0",
|
||||||
"del": "^2.2.1",
|
"del": "^2.2.1",
|
||||||
"extend": "^3.0.0",
|
|
||||||
"gulp": "^3.9.1",
|
"gulp": "^3.9.1",
|
||||||
"gulp-bump": "^2.2.0",
|
"gulp-bump": "^2.2.0",
|
||||||
"gulp-cached": "^1.1.0",
|
"gulp-cached": "^1.1.0",
|
||||||
|
|
Loading…
Reference in a new issue