From a14e1e4c97d07fc516c78929931c393a12304545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 9 Jul 2016 23:36:11 +0200 Subject: [PATCH] Replace extend() with Object.assign() --- gulp/tasks/build.js | 3 +-- gulp/utils/options.js | 1 - package.json | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/gulp/tasks/build.js b/gulp/tasks/build.js index 7fb687e5..e3a55158 100644 --- a/gulp/tasks/build.js +++ b/gulp/tasks/build.js @@ -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]) }; } })) diff --git a/gulp/utils/options.js b/gulp/utils/options.js index 7773e863..bfd3763e 100644 --- a/gulp/utils/options.js +++ b/gulp/utils/options.js @@ -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'); diff --git a/package.json b/package.json index d976af33..36da3c7b 100644 --- a/package.json +++ b/package.json @@ -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",