aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/systemjs.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/systemjs.config.js')
-rw-r--r--client/systemjs.config.js47
1 files changed, 47 insertions, 0 deletions
diff --git a/client/systemjs.config.js b/client/systemjs.config.js
new file mode 100644
index 000000000..6b284ec63
--- /dev/null
+++ b/client/systemjs.config.js
@@ -0,0 +1,47 @@
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': [
32 'rxjs',
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)