These are chat archives for systemjs/systemjs

14th
Feb 2016
Daniel
@gaiottino
Feb 14 2016 17:03
I'm trying to setup some Jasmine testing using System. But it's trying to load things like angular/core using my baseUrl even though it should already be included. What am I missing? Excuse the long source
  <script src="node_modules/angular2/bundles/angular2-polyfills.js"></script>
  <script src="node_modules/systemjs/dist/system.js"></script>
  <script src="node_modules/rxjs/bundles/Rx.js"></script>

  <script src="node_modules/angular2/bundles/angular2.js"></script>
  <script src="node_modules/angular2/bundles/http.js"></script>
  <script src="node_modules/angular2/bundles/router.js"></script>
  <script src="node_modules/angular2/bundles/testing.dev.js"></script>

  <script src="node_modules/typescript/lib/typescript.js"></script>

  <script>
    System.config({
      baseURL: '/app/assets/typescripts',
      transpiler : 'typescript',
      typescriptOptions : {
        emitDecoratorMetadata: true,
        experimentalDecorators: true
      },
      packages: {
        '/': {
          defaultExtension: 'ts'
        }
      }
    })

    Promise.all([
      System.import('apps/delivery/models'),
      System.import('specs/apps/delivery/models.spec'),
      System.import('components/dropdown'),
      System.import('specs/components/dropdown.spec'),
    ]).then(null, console.error.bind(console))
  </script>
Guy Bedford
@guybedford
Feb 14 2016 19:23
I'm not sure, I think you may need defaultJSExtensions: true set for Angular?