-
Notifications
You must be signed in to change notification settings - Fork 8
/
ngEducationFiles.js
56 lines (48 loc) · 1.57 KB
/
ngEducationFiles.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Add all your files here
var ngEducationFiles = {
indexFiles: [
'bower_components/lodash/dist/lodash.js',
'bower_components/jquery/dist/jquery.js',
'bower_components/angular/angular.js',
'bower_components/angular-route/angular-route.js',
'bower_components/angular-resource/angular-resource.js',
'bower_components/angular-animate/angular-animate.js',
'bower_components/bootstrap/dist/js/bootstrap.js',
'bower_components/angular-bootstrap/ui-bootstrap-tpls.js',
'bower_components/angular-spinkit/build/angular-spinkit.js',
'bower_components/video.js/video.dev.js',
'bower_components/videojs-youtube/src/media.youtube.js',
'bower_components/restangular/dist/restangular.js',
'bower_components/core-education/app-build/js/app.js',
'bower_components/core-education/app-build/js/app-templates.js',
'app/scripts/**/*Module.js',
'app/scripts/**/*.js'
],
uniTestFiles: [
'bower_components/angular-mocks/angular-mocks.js',
'test/unit/**/*.js',
'app/templates/*.html'
],
karmaUnit: [
'@indexFiles',
'@uniTestFiles'
]
};
if (exports) {
exports.files = ngEducationFiles;
exports.mergeFilesFor = function() {
var files = [];
Array.prototype.slice.call(arguments, 0).forEach(function(filegroup) {
ngEducationFiles[filegroup].forEach(function(file) {
// replace @ref
var match = file.match(/^\@(.*)/);
if (match) {
files = files.concat(ngEducationFiles[match[1]]);
} else {
files.push(file);
}
});
});
return files;
};
}