Skip to content

Commit

Permalink
removing systemjs.config.js from gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
techieshravan committed May 15, 2016
1 parent 524c169 commit 06fc3c2
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ node_modules
.idea
bower_components
*.js
!systemjs.config.js

.DS_Store

Expand Down
41 changes: 41 additions & 0 deletions quickstart/systemjs.config.js
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);

0 comments on commit 06fc3c2

Please sign in to comment.