From 06fc3c2438187a8afa4b776f9713d447228cbc16 Mon Sep 17 00:00:00 2001 From: Shravan Kumar Kasagoni Date: Mon, 16 May 2016 00:24:25 +0530 Subject: [PATCH] removing systemjs.config.js from gitignore --- .gitignore | 1 + quickstart/systemjs.config.js | 41 +++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 quickstart/systemjs.config.js diff --git a/.gitignore b/.gitignore index ea3f183..f81d082 100644 --- a/.gitignore +++ b/.gitignore @@ -36,6 +36,7 @@ node_modules .idea bower_components *.js +!systemjs.config.js .DS_Store diff --git a/quickstart/systemjs.config.js b/quickstart/systemjs.config.js new file mode 100644 index 0000000..6617efd --- /dev/null +++ b/quickstart/systemjs.config.js @@ -0,0 +1,41 @@ +/** + * Override at the last minute with global.filterSystemConfig (as plunkers do) + */ +(function(global) { + + // map tells the System loader where to look for things + var _map = { + 'app': 'app', // 'dist', + 'rxjs': 'node_modules/rxjs', + '@angular': 'node_modules/@angular' + }; + + // packages tells the System loader how to load when no filename and/or no extension + var _packages = { + 'app': { main: 'main.js', defaultExtension: 'js' }, + 'rxjs': { defaultExtension: 'js' } + }; + + var _angularPackages = [ + '@angular/common', + '@angular/compiler', + '@angular/core', + '@angular/platform-browser', + '@angular/platform-browser-dynamic' + ]; + + // add package entries for angular packages in the form + // '@angular/common': { main: 'index.js', defaultExtension: 'js' } + _angularPackages.forEach(function(pkgName) { + _packages[pkgName] = { main: 'index.js', defaultExtension: 'js' }; + // _packages[pkgName] = { main: 'index' }; + }); + + var config = { + map: _map, + packages: _packages + }; + + System.config(config); + +})(this);