]>
Commit | Line | Data |
---|---|---|
230809ef C |
1 | ;(function (global) { |
2 | var map = { | |
41a2aee3 C |
3 | 'angular-pipes': 'client/node_modules/angular-pipes', |
4 | 'ng2-bootstrap': 'client/node_modules/ng2-bootstrap', | |
5 | 'angular-rxjs.bundle': 'client/bundles/angular-rxjs.bundle.js' | |
230809ef C |
6 | } |
7 | ||
8 | var packages = { | |
41a2aee3 | 9 | 'client': { main: 'main.js', defaultExtension: 'js' }, |
32294074 | 10 | 'ng2-bootstrap': { defaultExtension: 'js' }, |
230809ef C |
11 | 'rxjs': { defaultExtension: 'js' } |
12 | } | |
13 | var packageNames = [ | |
14 | '@angular/common', | |
15 | '@angular/compiler', | |
16 | '@angular/core', | |
17 | '@angular/http', | |
18 | '@angular/platform-browser', | |
19 | '@angular/platform-browser-dynamic', | |
20 | '@angular/router-deprecated', | |
21 | 'angular-pipes' | |
22 | ] | |
23 | ||
24 | packageNames.forEach(function (pkgName) { | |
25 | packages[pkgName] = { main: 'index.js', defaultExtension: 'js' } | |
26 | }) | |
27 | ||
28 | var config = { | |
29 | map: map, | |
30 | packages: packages, | |
31 | bundles: { | |
32 | 'angular-rxjs.bundle': [ | |
5109ee61 | 33 | 'rxjs/Rx.js', |
230809ef C |
34 | '@angular/common/index.js', |
35 | '@angular/compiler/index.js', | |
36 | '@angular/core/index.js', | |
37 | '@angular/http/index.js', | |
38 | '@angular/platform-browser/index.js', | |
39 | '@angular/platform-browser-dynamic/index.js', | |
40 | '@angular/router-deprecated/index.js' | |
41 | ] | |
42 | } | |
43 | } | |
44 | ||
45 | // filterSystemConfig - index.html's chance to modify config before we register it. | |
46 | if (global.filterSystemConfig) global.filterSystemConfig(config) | |
47 | System.config(config) | |
48 | })(this) |