@@ -22,29 +22,25 @@ module.exports = function(config) {
2222 // endbower< % if ( filters . socketio ) { % >
2323 'node_modules/socket.io-client/socket.io.js',< % } % >
2424 'client/app/app.js',
25- 'client/app/**/*.js',
26- 'client/components/**/*.js',
27- 'client/app/**/*.jade',
28- 'client/components/**/*.jade',
29- 'client/app/**/*.html',
30- 'client/components/**/*.html'
25+ 'client/{ app , components } /**/*.module.js',
26+ 'client/{ app , components } /**/*.js',
27+ 'client/{ app , components } /**/*.< %= filters . jade ? '{ jade , html } ' : 'html ' % > '
3128 ],
3229
3330 preprocessors: {
34- '**/*.jade ' : 'ng-jade2js' ,
35- '**/*.html ' : 'html2js' , < % if ( filters . babel ) { % >
31+ '**/*.html ' : 'html2js' < % if ( filters . jade ) { % > ,
32+ '**/*.jade ' : 'ng-jade2js' < % } if (filters.babel) { % > ,
3633 'client/{app,components}/**/*.js' : 'babel' < % } %>
3734 } ,
3835
3936 ngHtml2JsPreprocessor : {
4037 stripPrefix : 'client/'
41- } ,
38+ } ,< % if ( filters . jade ) { % >
4239
4340 ngJade2JsPreprocessor: {
4441 stripPrefix : 'client/'
45- } ,
42+ } ,< % } if ( filters . babel ) { % >
4643
47- < % if ( filters . babel ) { % >
4844 babelPreprocessor: {
4945 options : {
5046 sourceMap : 'inline'
@@ -55,8 +51,7 @@ module.exports = function(config) {
5551 sourceFileName : function ( file ) {
5652 return file . originalPath ;
5753 }
58- } ,
59- < % } % >
54+ } ,< % } % >
6055
6156 // list of files / patterns to exclude
6257 exclude: [],
@@ -80,7 +75,6 @@ module.exports = function(config) {
8075 // enable / disable watching file and executing tests whenever any file changes
8176 autoWatch: false,
8277
83-
8478 // Start these browsers, currently available:
8579 // - Chrome
8680 // - ChromeCanary
@@ -91,7 +85,6 @@ module.exports = function(config) {
9185 // - IE (only Windows)
9286 browsers: ['PhantomJS'],
9387
94-
9588 // Continuous Integration mode
9689 // if true, it capture browsers, run tests and exit
9790 singleRun: false
0 commit comments