-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsystemjs.conf.js
74 lines (64 loc) · 2.08 KB
/
systemjs.conf.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
65
66
67
68
69
70
71
72
73
74
/*
* This config is only used during development and build phase only
* It will not be available on production
*
*/
(function(global) {
// wildcard paths
var paths = {
'n:*': 'node_modules/*'
};
// map tells the System loader where to look for things
var map = {
'app': 'app',
'test': 'test',
'rxjs': 'n:rxjs',
'@angular': 'n:@angular',
'lodash': 'n:lodash',
'ng2-ui-auth': 'n:ng2-ui-auth',
'ng2-select': 'n:ng2-select',
'ng2-bs3-modal': 'n:ng2-bs3-modal',
'jquery': 'n:jquery'
};
// packages tells the System loader how to load when no filename and/or no extension
var packages = {
'app': {
defaultExtension: 'js'
},
'test': {
defaultExtension: 'js'
},
'rxjs': {
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',
'jquery',
'lodash'
];
// 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' };
});
packages['ng2-ui-auth'] = { main: 'dist/ng2-ui-auth.js', defaultExtension: 'js' };
packages['ng2-select'] = { main: 'ng2-select.js', defaultExtension: 'js' };
packages['ng2-bs3-modal'] = { main: 'ng2-bs3-modal.js', defaultExtension: 'js' };
packages['jquery'] = { main: 'dist/jquery.js', defaultExtension: 'js' };
var config = {
map: map,
packages: packages,
paths: paths
};
// filterSystemConfig - index.html's chance to modify config before we register it.
if (global.filterSystemConfig) { global.filterSystemConfig(config); }
System.config(config);
})(this);