-
Notifications
You must be signed in to change notification settings - Fork 2
/
systemjs.config.js
58 lines (50 loc) · 2.38 KB
/
systemjs.config.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
57
58
(function(global) {
// map tells the System loader where to look for things
var map = {
'app': 'app', // 'dist',
'rxjs': 'node_modules/rxjs',
'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api',
'@angular': 'node_modules/@angular',
'@angular2-material/core': '/node_modules/@angular2-material/core',
'@angular2-material/toolbar': '/node_modules/@angular2-material/toolbar',
'@angular2-material/card' : '/node_modules/@angular2-material/card',
'@angular2-material/sidenav': '/node_modules/@angular2-material/sidenav',
'@angular2-material/list': '/node_modules/@angular2-material/list',
'@angular2-material/button': '/node_modules/@angular2-material/button'
};
// packages tells the System loader how to load when no filename and/or no extension
var packages = {
'app': { main: 'main.js', defaultExtension: 'js' },
'rxjs': { defaultExtension: 'js' },
'angular2-in-memory-web-api': { defaultExtension: 'js' },
'node_modules/@angular2-material/core' : { defaultExtension: 'js'},
'node_modules/@angular2-material/toolbar': { main: 'toolbar.js', defaultExtension: 'js' },
'node_modules/@angular2-material/card': { main: 'card.js', defaultExtension: 'js' },
'node_modules/@angular2-material/sidenav': { main: 'sidenav.js', defaultExtension: 'js' },
'node_modules/@angular2-material/list': { main: 'list.js', defaultExtension: 'js' },
'node_modules/@angular2-material/button': { main: 'button.js', defaultExtension: 'js' }
};
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',
];
// add package entries for angular packages in the form '@angular/common': { main: 'index.js', defaultExtension: 'js' }
packageNames.forEach(function(pkgName) {
packages[pkgName] = { main: 'index.js', defaultExtension: 'js' };
});
var config = {
map: map,
packages: packages
}
// filterSystemConfig - index.html's chance to modify config before we register it.
if (global.filterSystemConfig) { global.filterSystemConfig(config); }
System.config(config);
})(this);