2016-05-13 14:18:37 +02:00
|
|
|
;(function (global) {
|
|
|
|
var map = {
|
2016-05-27 16:23:10 +02:00
|
|
|
'angular-pipes': 'client/node_modules/angular-pipes',
|
|
|
|
'ng2-bootstrap': 'client/node_modules/ng2-bootstrap',
|
|
|
|
'angular-rxjs.bundle': 'client/bundles/angular-rxjs.bundle.js'
|
2016-05-13 14:18:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
var packages = {
|
2016-05-27 16:23:10 +02:00
|
|
|
'client': { main: 'main.js', defaultExtension: 'js' },
|
2016-05-22 10:43:06 +02:00
|
|
|
'ng2-bootstrap': { defaultExtension: 'js' },
|
2016-05-13 14:18:37 +02:00
|
|
|
'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': [
|
2016-05-13 14:51:33 +02:00
|
|
|
'rxjs/Rx.js',
|
2016-05-13 14:18:37 +02:00
|
|
|
'@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)
|