@@ -72,7 +72,7 @@ module.exports = function (grunt) {
7272 } ,
7373 jsTest: {
7474 files : [ '<%%= yeoman.client %>/{app,components}/**/*.{spec,mock}.js' ] ,
75- tasks : [ 'newer:jshint:all' , 'karma' ]
75+ tasks : [ 'newer:jshint:all' , 'wiredep:test' , ' karma']
7676 } ,< % if ( filters . stylus ) { % >
7777 injectStylus: {
7878 files : [ '<%%= yeoman.client %>/{app,components}/**/*.styl' ] ,
@@ -240,12 +240,26 @@ module.exports = function (grunt) {
240240 }
241241 } ,
242242
243- // Automatically inject Bower components into the app
243+ // Automatically inject Bower components into the app and karma.conf.js
244244 wiredep: {
245- target : {
245+ options : {
246+ exclude : [
247+ / a n g u l a r - s c e n a r i o / ,
248+ / b o o t s t r a p - s a s s - o f f i c i a l / ,
249+ / b o o t s t r a p .j s / ,
250+ '/json3/' ,
251+ '/es5-shim/' < % if ( ! filters . css ) { % > ,
252+ / b o o t s t r a p .c s s / ,
253+ / f o n t - a w e s o m e .c s s / < % } % >
254+ ]
255+ } ,
256+ client : {
246257 src : '<%%= yeoman.client %>/index.html' ,
247258 ignorePath : '<%%= yeoman.client %>/' ,
248- exclude : [ / b o o t s t r a p - s a s s - o f f i c i a l / , / b o o t s t r a p .j s / , '/json3/' , '/es5-shim/' < % if ( ! filters . css ) { % > , / b o o t s t r a p .c s s / , / f o n t - a w e s o m e .c s s / < % } % > ]
259+ } ,
260+ test : {
261+ src : './karma.conf.js' ,
262+ devDependencies : true
249263 }
250264 } ,
251265
@@ -773,7 +787,7 @@ module.exports = function (grunt) {
773787 'injector:sass' , < % } %>
774788 'concurrent :server ',
775789 'injector ',
776- 'wiredep ',
790+ 'wiredep : client ',
777791 'postcss ',
778792 'concurrent :debug '
779793 ] ) ;
@@ -787,7 +801,7 @@ module.exports = function (grunt) {
787801 'injector:sass',< % } % >
788802 'concurrent:server',
789803 'injector',
790- 'wiredep',
804+ 'wiredep:client ',
791805 'postcss',
792806 'express:dev',
793807 'wait',
@@ -821,6 +835,7 @@ module.exports = function (grunt) {
821835 'concurrent :test ',
822836 'injector ',
823837 'postcss ',
838+ 'wiredep :test ',
824839 'karma '
825840 ] ) ;
826841 }
@@ -847,7 +862,7 @@ module.exports = function (grunt) {
847862 'injector:sass' , < % } %>
848863 'concurrent :test ',
849864 'injector ',
850- 'wiredep ',
865+ 'wiredep : client ',
851866 'postcss ',
852867 'express :dev ',
853868 'protractor '
@@ -903,7 +918,7 @@ module.exports = function (grunt) {
903918 'injector:sass',< % } % >
904919 'concurrent:dist',
905920 'injector',
906- 'wiredep',
921+ 'wiredep:client ',
907922 'useminPrepare',
908923 'postcss',
909924 'ngtemplates',
0 commit comments