@@ -22,29 +22,25 @@ module.exports = function(config) {
22
22
// endbower< % if ( filters . socketio ) { % >
23
23
'node_modules/socket.io-client/socket.io.js',< % } % >
24
24
'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 ' % > '
31
28
],
32
29
33
30
preprocessors: {
34
- '**/*.jade ' : 'ng-jade2js' ,
35
- '**/*.html ' : 'html2js' , < % if ( filters . babel ) { % >
31
+ '**/*.html ' : 'html2js' < % if ( filters . jade ) { % > ,
32
+ '**/*.jade ' : 'ng-jade2js' < % } if (filters.babel) { % > ,
36
33
'client/{app,components}/**/*.js' : 'babel' < % } %>
37
34
} ,
38
35
39
36
ngHtml2JsPreprocessor : {
40
37
stripPrefix : 'client/'
41
- } ,
38
+ } ,< % if ( filters . jade ) { % >
42
39
43
40
ngJade2JsPreprocessor: {
44
41
stripPrefix : 'client/'
45
- } ,
42
+ } ,< % } if ( filters . babel ) { % >
46
43
47
- < % if ( filters . babel ) { % >
48
44
babelPreprocessor: {
49
45
options : {
50
46
sourceMap : 'inline'
@@ -55,8 +51,7 @@ module.exports = function(config) {
55
51
sourceFileName : function ( file ) {
56
52
return file . originalPath ;
57
53
}
58
- } ,
59
- < % } % >
54
+ } ,< % } % >
60
55
61
56
// list of files / patterns to exclude
62
57
exclude: [],
@@ -80,7 +75,6 @@ module.exports = function(config) {
80
75
// enable / disable watching file and executing tests whenever any file changes
81
76
autoWatch: false,
82
77
83
-
84
78
// Start these browsers, currently available:
85
79
// - Chrome
86
80
// - ChromeCanary
@@ -91,7 +85,6 @@ module.exports = function(config) {
91
85
// - IE (only Windows)
92
86
browsers: ['PhantomJS'],
93
87
94
-
95
88
// Continuous Integration mode
96
89
// if true, it capture browsers, run tests and exit
97
90
singleRun: false
0 commit comments