-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removing systemjs.config.js from gitignore
- Loading branch information
1 parent
524c169
commit 06fc3c2
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ node_modules | |
.idea | ||
bower_components | ||
*.js | ||
!systemjs.config.js | ||
|
||
.DS_Store | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); |