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