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