Add systemd file example
[oweals/peertube.git] / client / systemjs.config.js
1 ;(function (global) {
2   var map = {
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'
6   }
7
8   var packages = {
9     'client': { main: 'main.js', defaultExtension: 'js' },
10     'ng2-bootstrap': { defaultExtension: 'js' },
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': [
33         'rxjs/Rx.js',
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)