Skip to content

Commit 69c88fa

Browse files
committed
feat(gulp): Include lodash and use it to replace array.concat(array) with _.union(array, array)
1 parent d78e0f6 commit 69c88fa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/templates/gulpfile.babel.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Generated on <%= (new Date).toISOString().split('T')[0] %> using <%= pkg.name %> <%= pkg.version %>
22
'use strict';
33

4+
import _ from '_';
45
import gulp from 'gulp';
56
import path from 'path';
67
import gulpLoadPlugins from 'gulp-load-plugins';
@@ -120,7 +121,7 @@ gulp.task('coffee', () =>
120121
.pipe(gulp.dest('.tmp/scripts'));
121122
);<% } %>
122123

123-
gulp.task('lint:scripts', () => gulp.src(paths.client.scripts.concat(paths.server.scripts)).pipe(lintScripts()));
124+
gulp.task('lint:scripts', () => gulp.src(_.union(paths.client.scripts, paths.server.scripts)).pipe(lintScripts()));
124125

125126
gulp.task('clean:tmp', () => gulp.src('.tmp', {read: false}).pipe(plugins.clean()));
126127

0 commit comments

Comments
 (0)