forked from FrontendMatter/adminplus-boilerplate-angular2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
systemjs.config.js
64 lines (57 loc) · 2.67 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
59
60
61
62
63
64
/**
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
* Override at the last minute with global.filterSystemConfig (as plunkers do)
*/
(function(global) {
// map tells the System loader where to look for things
var map = {
'app': 'assets/js',
'bootstrap-layout-scrollable': 'node_modules/bootstrap-layout-scrollable/dist/bootstrap-layout-scrollable.js',
'bootstrap-layout': 'node_modules/bootstrap-layout/dist/bootstrap-layout.js',
'ng2-bootstrap-layout': 'node_modules/ng2-bootstrap-layout',
'ng2-router-active': 'node_modules/ng2-router-active',
'rxjs': 'node_modules/rxjs',
'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api',
'@angular': 'node_modules/@angular',
'es6-shim': 'node_modules/es6-shim/es6-shim.min.js',
'zone.js': 'node_modules/zone.js/dist/zone.js',
'reflect-metadata': 'node_modules/reflect-metadata/Reflect.js',
'jquery': 'node_modules/jquery/dist/jquery.min.js',
'simplebar': 'node_modules/simplebar/dist/simplebar.min.js',
'tether': 'node_modules/tether/dist/js/tether.min.js',
'bootstrap': 'node_modules/bootstrap/dist/js/bootstrap.min.js'
};
// packages tells the System loader how to load when no filename and/or no extension
var packages = {
'app': { main: 'main', defaultExtension: 'js' },
'rxjs': { defaultExtension: 'js' },
'mout': { defaultExtension: 'js' },
'angular2-in-memory-web-api': { defaultExtension: 'js' },
'ng2-bootstrap-layout': { main: 'index', defaultExtension: 'js' },
'ng2-router-active': { main: 'index', defaultExtension: 'js' },
'reflect-metadata': { format: 'global' },
'tether': { format: 'global' }
};
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
}
System.config(config);
})(this);