]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/systemjs.config.js
Add trivial sort for the client
[github/Chocobozzz/PeerTube.git] / client / systemjs.config.js
1 ;(function (global) {
2 var map = {
3 'app': 'app/angular',
4 'angular-pipes': 'app/node_modules/angular-pipes',
5 'ng2-bootstrap': 'app/node_modules/ng2-bootstrap',
6 'angular-rxjs.bundle': 'app/bundles/angular-rxjs.bundle.js'
7 }
8
9 var packages = {
10 'app': { main: 'main.js', defaultExtension: 'js' },
11 'ng2-bootstrap': { defaultExtension: 'js' },
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': [
34 'rxjs/Rx.js',
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)