style(gulpfile): Remove object assign

This commit is contained in:
Berkeley Martinez
2018-01-09 06:41:18 -08:00
parent e384f6a90c
commit 9add2cf465
2 changed files with 64 additions and 9 deletions

View File

@@ -1,5 +1,4 @@
// enable debug for gulp
/* eslint-disable prefer-object-spread/prefer-object-spread */
process.env.DEBUG = process.env.DEBUG || 'fcc:*';
require('dotenv').load();
@@ -291,11 +290,10 @@ gulp.task('pack-client', function() {
return gulp.src(webpackConfig.entry.bundle)
.pipe(plumber({ errorHandler }))
.pipe(webpackStream(Object.assign(
{},
webpackConfig,
webpackOptions
)))
.pipe(webpackStream({
...webpackConfig,
...webpackOptions
}))
.pipe(gulpif(condition, gutil.noop(), uglify()))
.pipe(gulp.dest(dest));
});
@@ -412,9 +410,8 @@ gulp.task('js', function() {
});
function collector(file, memo) {
return Object.assign({}, JSON.parse(file.contents), memo);
}
const collector = (file, memo) =>
Object.assign(memo, JSON.parse(file.contents));
function done(manifest) {
return sortKeys(manifest);