aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/systemjs.config.js
blob: 0ac94ca445dcecf9180c651bf3fc541a6b65e49d (plain) (tree)






























                                                                    
                     














                                                                                     
;(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/Rx.js',
        '@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)