From 230809efa1e7e81ce60cd65f8b398f01a27d525b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 13 May 2016 14:18:37 +0200 Subject: Update to Angular RC 1 --- client/systemjs.config.js | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 client/systemjs.config.js (limited to 'client/systemjs.config.js') 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 @@ +;(function (global) { + var map = { + 'app': 'app/angular', + 'angular-pipes': 'app/node_modules/angular-pipes', + 'angular-rxjs.bundle': 'app/bundles/angular-rxjs.bundle.js' + } + + var packages = { + 'app': { main: 'main.js', defaultExtension: 'js' }, + 'rxjs': { defaultExtension: 'js' } + } + var packageNames = [ + '@angular/common', + '@angular/compiler', + '@angular/core', + '@angular/http', + '@angular/platform-browser', + '@angular/platform-browser-dynamic', + '@angular/router-deprecated', + 'angular-pipes' + ] + + packageNames.forEach(function (pkgName) { + packages[pkgName] = { main: 'index.js', defaultExtension: 'js' } + }) + + var config = { + map: map, + packages: packages, + bundles: { + 'angular-rxjs.bundle': [ + 'rxjs', + '@angular/common/index.js', + '@angular/compiler/index.js', + '@angular/core/index.js', + '@angular/http/index.js', + '@angular/platform-browser/index.js', + '@angular/platform-browser-dynamic/index.js', + '@angular/router-deprecated/index.js' + ] + } + } + + // filterSystemConfig - index.html's chance to modify config before we register it. + if (global.filterSystemConfig) global.filterSystemConfig(config) + System.config(config) +})(this) -- cgit v1.2.3