@@ -114,7 +114,7 @@ angularFiles = {
114
114
'test/ngMobile/**/*.js'
115
115
] ,
116
116
117
- 'jstd ' : [
117
+ 'karma ' : [
118
118
'components/jquery/jquery.js' ,
119
119
'test/jquery_remove.js' ,
120
120
'@angularSrc' ,
@@ -126,18 +126,18 @@ angularFiles = {
126
126
'example/personalLog/test/*.js'
127
127
] ,
128
128
129
- 'jstdExclude ' : [
129
+ 'karmaExclude ' : [
130
130
'test/jquery_alias.js' ,
131
131
'src/angular-bootstrap.js' ,
132
132
'src/ngScenario/angular-bootstrap.js'
133
133
] ,
134
134
135
- 'jstdScenario ' : [
135
+ 'karmaScenario ' : [
136
136
'build/angular-scenario.js' ,
137
137
'build/docs/docs-scenario.js'
138
138
] ,
139
139
140
- "jstdModules " : [
140
+ "karmaModules " : [
141
141
'build/angular.js' ,
142
142
'@angularSrcModules' ,
143
143
'src/ngScenario/browserTrigger.js' ,
@@ -151,21 +151,7 @@ angularFiles = {
151
151
'test/ngMobile/**/*.js'
152
152
] ,
153
153
154
- 'jstdPerf' : [
155
- '@angularSrc' ,
156
- '@angularSrcModules' ,
157
- 'src/ngMock/angular-mocks.js' ,
158
- 'perf/data/*.js' ,
159
- 'perf/testUtils.js' ,
160
- 'perf/*.js'
161
- ] ,
162
-
163
- 'jstdPerfExclude' : [
164
- 'src/ng/angular-bootstrap.js' ,
165
- 'src/ngScenario/angular-bootstrap.js'
166
- ] ,
167
-
168
- 'jstdJquery' : [
154
+ 'karmaJquery' : [
169
155
'components/jquery/jquery.js' ,
170
156
'test/jquery_alias.js' ,
171
157
'@angularSrc' ,
@@ -178,37 +164,30 @@ angularFiles = {
178
164
'example/personalLog/test/*.js'
179
165
] ,
180
166
181
- 'jstdJqueryExclude ' : [
167
+ 'karmaJqueryExclude ' : [
182
168
'src/angular-bootstrap.js' ,
183
169
'src/ngScenario/angular-bootstrap.js' ,
184
170
'test/jquery_remove.js'
185
171
]
186
172
} ;
187
173
188
174
if ( exports ) {
189
- exports . files = angularFiles
190
- exports . mergeFiles = function mergeFiles ( ) {
175
+ exports . files = angularFiles ;
176
+ exports . mergeFilesFor = function ( ) {
191
177
var files = [ ] ;
192
178
193
- [ ] . splice . call ( arguments , 0 ) . forEach ( function ( file ) {
194
- if ( file . match ( / k a r m a / ) ) {
195
- files . push ( file ) ;
196
- } else {
197
- angularFiles [ file ] . forEach ( function ( f ) {
198
- // replace @ref
199
- var match = f . match ( / ^ \@ ( .* ) / ) ;
200
- if ( match ) {
201
- var deps = angularFiles [ match [ 1 ] ] ;
202
- files = files . concat ( deps ) ;
203
- } else {
204
- if ( ! / j s t d | j a s m i n e / . test ( f ) ) { //TODO(i): remove once we don't have jstd/jasmine in repo
205
- files . push ( f ) ;
206
- }
207
- }
208
- } ) ;
209
- }
179
+ Array . prototype . slice . call ( arguments , 0 ) . forEach ( function ( filegroup ) {
180
+ angularFiles [ filegroup ] . forEach ( function ( file ) {
181
+ // replace @ref
182
+ var match = file . match ( / ^ \@ ( .* ) / ) ;
183
+ if ( match ) {
184
+ files = files . concat ( angularFiles [ match [ 1 ] ] ) ;
185
+ } else {
186
+ files . push ( file ) ;
187
+ }
188
+ } ) ;
210
189
} ) ;
211
190
212
191
return files ;
213
- }
192
+ } ;
214
193
}
0 commit comments