From 3b1f44b13bde6e87f6acb56bb94362f6c47761aa Mon Sep 17 00:00:00 2001 From: Olivier Brisse Date: Tue, 2 Jan 2018 15:49:45 +1100 Subject: [PATCH] Replace gulp-main-bower-files with main-bower-files It's causing trouble with the deprecation of gulp-utils introduced in gulp 4.0-alpha3 --- gulp_tasks/misc.js | 5 ++--- package.json | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/gulp_tasks/misc.js b/gulp_tasks/misc.js index a0ea05ae..62d6273a 100644 --- a/gulp_tasks/misc.js +++ b/gulp_tasks/misc.js @@ -2,7 +2,7 @@ const path = require('path'); const gulp = require('gulp'); const del = require('del'); -const mainBowerFiles = require('gulp-main-bower-files'); +const mainBowerFiles = require('main-bower-files'); const filter = require('gulp-filter'); const flatten = require('gulp-flatten'); @@ -26,8 +26,7 @@ function fonts() { } function images() { - return gulp.src('./bower.json') - .pipe(mainBowerFiles()) + return gulp.src(mainBowerFiles()) .pipe(filter('**/*.{png,jpg,jpeg,gif}')) .pipe(flatten()) .pipe(gulp.dest(conf.path.dist('/images/'))); diff --git a/package.json b/package.json index 7d19aeee..b45eefc0 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,6 @@ "gulp-inject": "^4.2.0", "gulp-insert": "^0.5.0", "gulp-less": "^3.0.5", - "gulp-main-bower-files": "^1.6.2", "gulp-merge-json": "^1.1.0", "gulp-ng-annotate": "^2.0.0", "gulp-postcss": "^6.0.1", @@ -67,7 +66,7 @@ "karma-phantomjs-shim": "^1.1.2", "karma-spec-reporter": "0.0.31", "lazypipe": "^1.0.1", - "main-bower-files": "^2.9.0", + "main-bower-files": "^2.13.1", "phantomjs-prebuilt": "^2.1.6", "sprity": "^1.0.8", "uglify-save-license": "^0.4.1",