Skip to content

Commit f7dcd34

Browse files
committed
chore(gulp): update gulp-filter to 4
1 parent 310cb22 commit f7dcd34

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

app/templates/_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"gulp-cache": "^0.2.10",
5656
"gulp-concat": "^2.6.0",
5757
"gulp-env": "^0.2.0",
58-
"gulp-filter": "^2.0.2",
58+
"gulp-filter": "^4.0.0",
5959
"gulp-imagemin": "^2.2.1",
6060
"gulp-inject": "^1.3.1",
6161
"gulp-istanbul": "~0.10.3",

app/templates/gulpfile.babel(gulp).js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -537,30 +537,30 @@ gulp.task('clean:dist', () => del([`${paths.dist}/!(.git*|.openshift|Procfile)**
537537
gulp.task('build:client', ['transpile:client', 'styles', 'html', 'constant'], () => {
538538
var manifest = gulp.src(`${paths.dist}/${clientPath}/assets/rev-manifest.json`);
539539

540-
var appFilter = plugins.filter('**/app.js');
541-
var jsFilter = plugins.filter('**/*.js');
542-
var cssFilter = plugins.filter('**/*.css');
543-
var htmlBlock = plugins.filter(['**/*.!(html)']);
540+
var appFilter = plugins.filter('**/app.js', {restore: true});
541+
var jsFilter = plugins.filter('**/*.js', {restore: true});
542+
var cssFilter = plugins.filter('**/*.css', {restore: true});
543+
var htmlBlock = plugins.filter(['**/*.!(html)'], {restore: true});
544544

545545
return gulp.src(paths.client.mainView)
546546
.pipe(plugins.useref())
547547
.pipe(appFilter)
548548
.pipe(plugins.addSrc.append('.tmp/templates.js'))
549549
.pipe(plugins.concat('app/app.js'))
550-
.pipe(appFilter.restore())
550+
.pipe(appFilter.restore)
551551
.pipe(jsFilter)
552552
.pipe(plugins.ngAnnotate())
553553
.pipe(plugins.uglify())
554-
.pipe(jsFilter.restore())
554+
.pipe(jsFilter.restore)
555555
.pipe(cssFilter)
556556
.pipe(plugins.minifyCss({
557557
cache: true,
558558
processImportFrom: ['!fonts.googleapis.com']
559559
}))
560-
.pipe(cssFilter.restore())
560+
.pipe(cssFilter.restore)
561561
.pipe(htmlBlock)
562562
.pipe(plugins.rev())
563-
.pipe(htmlBlock.restore())
563+
.pipe(htmlBlock.restore)
564564
.pipe(plugins.revReplace({manifest}))
565565
.pipe(gulp.dest(`${paths.dist}/${clientPath}`));
566566
});

0 commit comments

Comments
 (0)