Skip to content

Commit

Permalink
Replace gulp-main-bower-files with main-bower-files
Browse files Browse the repository at this point in the history
It's causing trouble with the deprecation of gulp-utils introduced in
gulp 4.0-alpha3
  • Loading branch information
ouranos authored and manu-d committed Jan 12, 2018
1 parent 9a1e5a5 commit 3b1f44b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions gulp_tasks/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand All @@ -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/')));
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 3b1f44b

Please sign in to comment.