Replace extend() with Object.assign()

This commit is contained in:
Jürg Lehni 2016-07-09 23:36:11 +02:00
parent bf2eada11c
commit a14e1e4c97
3 changed files with 1 additions and 4 deletions

View file

@ -16,7 +16,6 @@ var gulp = require('gulp'),
uncomment = require('gulp-uncomment'),
whitespace = require('gulp-whitespace'),
del = require('del'),
extend = require('extend'),
options = require('../utils/options.js');
// 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
// objects.
return {
__options: extend({}, options, buildOptions[name])
__options: Object.assign({}, options, buildOptions[name])
};
}
}))

View file

@ -11,7 +11,6 @@
*/
var execSync = require('child_process').execSync,
extend = require('extend'),
// Require the __options object, so we have access to the version number and
// make amendments, e.g. the release date.
options = require('../../src/options.js');

View file

@ -47,7 +47,6 @@
"devDependencies": {
"acorn": "~0.5.0",
"del": "^2.2.1",
"extend": "^3.0.0",
"gulp": "^3.9.1",
"gulp-bump": "^2.2.0",
"gulp-cached": "^1.1.0",