aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/systemjs.config.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-06-03 22:08:03 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-06-03 22:08:03 +0200
commit4a6995be18b15de1834a39c8921a0e4109671bb6 (patch)
treeb659661cea33687fcc6bd8fc2251cb7a15ab9f9d /client/systemjs.config.js
parent468892541175f9662f8b1b977e819dc1a496f282 (diff)
downloadPeerTube-4a6995be18b15de1834a39c8921a0e4109671bb6.tar.gz
PeerTube-4a6995be18b15de1834a39c8921a0e4109671bb6.tar.zst
PeerTube-4a6995be18b15de1834a39c8921a0e4109671bb6.zip
First draft to use webpack instead of systemjs
Diffstat (limited to 'client/systemjs.config.js')
-rw-r--r--client/systemjs.config.js48
1 files changed, 0 insertions, 48 deletions
diff --git a/client/systemjs.config.js b/client/systemjs.config.js
deleted file mode 100644
index d04bc4107..000000000
--- a/client/systemjs.config.js
+++ /dev/null
@@ -1,48 +0,0 @@
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)