@@ -11,6 +11,7 @@ var queue = require('streamqueue');
11
11
var lazypipe = require ( 'lazypipe' ) ;
12
12
var stylish = require ( 'jshint-stylish' ) ;
13
13
var bower = require ( './bower' ) ;
14
+ var mainBowerFiles = require ( 'main-bower-files' ) ;
14
15
var historyApiFallback = require ( 'connect-history-api-fallback' ) ;
15
16
var isWatching = false ;
16
17
@@ -96,7 +97,7 @@ gulp.task('templates-dist', function() {
96
97
* Vendors
97
98
*/
98
99
gulp . task ( 'vendors' , function ( ) {
99
- var bowerStream = g . bowerFiles ( ) ;
100
+ var bowerStream = mainBowerFiles ( ) ;
100
101
101
102
return es . merge (
102
103
bowerStream . pipe ( g . filter ( '**/*.css' ) ) . pipe ( dist ( 'css' , 'vendors' ) ) ,
@@ -114,7 +115,7 @@ function index() {
114
115
var opt = { read : false } ;
115
116
116
117
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}} -->' } ) )
118
119
. pipe ( g . inject ( es . merge ( appFiles ( ) , cssFiles ( opt ) ) , { ignorePath : [ '.tmp' , 'src/app' ] } ) )
119
120
. pipe ( g . embedlr ( ) )
120
121
. pipe ( replace ( {
@@ -269,7 +270,7 @@ gulp.task('karma-conf', ['templates'], function() {
269
270
*/
270
271
function testFiles ( ) {
271
272
return new queue ( { objectMode : true } )
272
- . queue ( g . bowerFiles ( ) . pipe ( g . filter ( '**/*.js' ) ) )
273
+ . queue ( gulp . src ( mainBowerFiles ( ) ) . pipe ( g . filter ( '**/*.js' ) ) )
273
274
. queue ( gulp . src ( './bower_components/angular-mocks/angular-mocks.js' ) )
274
275
. queue ( appFiles ( ) )
275
276
. queue ( gulp . src ( './src/app/**/*_test.js' ) )
0 commit comments