diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-13 14:18:37 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-13 14:23:11 +0200 |
commit | 230809efa1e7e81ce60cd65f8b398f01a27d525b (patch) | |
tree | ddbd0cee82bd2d35d01a1307a2905a467f51ca6b /client/systemjs.config.js | |
parent | bc503c2a62dcf9aed6b8d90b68f0f27a7755ac01 (diff) | |
download | PeerTube-230809efa1e7e81ce60cd65f8b398f01a27d525b.tar.gz PeerTube-230809efa1e7e81ce60cd65f8b398f01a27d525b.tar.zst PeerTube-230809efa1e7e81ce60cd65f8b398f01a27d525b.zip |
Update to Angular RC 1
Diffstat (limited to 'client/systemjs.config.js')
-rw-r--r-- | client/systemjs.config.js | 47 |
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) | ||