Skip to content

Commit 904f68b

Browse files
committed
Changed gulp-bower-files to main-bower-files
1 parent a539af9 commit 904f68b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

gulpfile.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ var queue = require('streamqueue');
1111
var lazypipe = require('lazypipe');
1212
var stylish = require('jshint-stylish');
1313
var bower = require('./bower');
14+
var mainBowerFiles = require('main-bower-files');
1415
var historyApiFallback = require('connect-history-api-fallback');
1516
var isWatching = false;
1617

@@ -96,7 +97,7 @@ gulp.task('templates-dist', function() {
9697
* Vendors
9798
*/
9899
gulp.task('vendors', function() {
99-
var bowerStream = g.bowerFiles();
100+
var bowerStream = mainBowerFiles();
100101

101102
return es.merge(
102103
bowerStream.pipe(g.filter('**/*.css')).pipe(dist('css', 'vendors')),
@@ -114,7 +115,7 @@ function index() {
114115
var opt = {read: false};
115116

116117
return gulp.src('./src/app/index.html')
117-
.pipe(g.inject(g.bowerFiles(opt), {ignorePath: 'bower_components', starttag: '<!-- inject:vendor:{{ext}} -->'}))
118+
.pipe(g.inject(gulp.src(mainBowerFiles(opt)), {ignorePath: 'bower_components', starttag: '<!-- inject:vendor:{{ext}} -->'}))
118119
.pipe(g.inject(es.merge(appFiles(), cssFiles(opt)), {ignorePath: ['.tmp', 'src/app']}))
119120
.pipe(g.embedlr())
120121
.pipe(replace({
@@ -269,7 +270,7 @@ gulp.task('karma-conf', ['templates'], function() {
269270
*/
270271
function testFiles() {
271272
return new queue({objectMode: true})
272-
.queue(g.bowerFiles().pipe(g.filter('**/*.js')))
273+
.queue(gulp.src(mainBowerFiles()).pipe(g.filter('**/*.js')))
273274
.queue(gulp.src('./bower_components/angular-mocks/angular-mocks.js'))
274275
.queue(appFiles())
275276
.queue(gulp.src('./src/app/**/*_test.js'))

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"event-stream": "3.3.2",
1919
"gulp": "3.9.0",
2020
"gulp-angular-filesort": "1.1.1",
21-
"gulp-bower-files": "0.2.7",
2221
"gulp-cached": "1.1.0",
2322
"gulp-clean": "0.3.1",
2423
"gulp-concat": "2.6.0",
@@ -47,6 +46,7 @@
4746
"karma-chrome-launcher": "0.2.1",
4847
"karma-mocha": "0.2.0",
4948
"lazypipe": "1.0.1",
49+
"main-bower-files": "^2.9.0",
5050
"sort-stream": "1.0.1",
5151
"streamqueue": "1.1.1",
5252
"tiny-lr": "0.2.1"

0 commit comments

Comments
 (0)