forked from justindujardin/ng2-material
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.karma.js
54 lines (48 loc) · 1.22 KB
/
config.karma.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
var config = {
packages: {
'dist': {
defaultExtension: 'js'
},
'src': {
defaultExtension: 'js'
},
'@angular': {
defaultExtension: 'js'
},
'@angular2-material': {
defaultExtension: 'js'
},
'rxjs': {
defaultExtension: 'js'
}
},
map: {
'@angular': '/base/node_modules/@angular',
'@angular2-material': '/base/node_modules/@angular2-material',
'rxjs': '/base/node_modules/rxjs'
},
baseURL: './base/'
};
var packageNames = [
'@angular/common',
'@angular/compiler',
'@angular/core',
'@angular/http',
'@angular/platform-browser',
'@angular/platform-browser-dynamic',
'@angular/router',
'@angular/router-deprecated',
'@angular/testing',
'@angular/upgrade'
];
var material2Packages = [
'core', 'checkbox'
];
material2Packages.forEach(function (pkgName) {
config.packages['@angular2-material/' + pkgName] = {main: pkgName + '.js', defaultExtension: 'js', format: 'cjs'}
});
// add package entries for angular packages in the form '@angular/common': { main: 'index.js', defaultExtension: 'js' }
packageNames.forEach(function (pkgName) {
config.packages[pkgName] = {main: 'index.js', defaultExtension: 'js'};
});
System.config(config);