{"action":"created","issue":{"url":"https://api.github.com/repos/rolaveric/karma-systemjs/issues/9","labels_url":"https://api.github.com/repos/rolaveric/karma-systemjs/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/rolaveric/karma-systemjs/issues/9/comments","events_url":"https://api.github.com/repos/rolaveric/karma-systemjs/issues/9/events","html_url":"https://github.com/rolaveric/karma-systemjs/issues/9","id":61994804,"number":9,"title":"How does Karma config section for systemjs overlay/interract with the systemjs.config file used for loading an app?","user":{"login":"kburson","id":1082467,"avatar_url":"https://avatars.githubusercontent.com/u/1082467?v=3","gravatar_id":"","url":"https://api.github.com/users/kburson","html_url":"https://github.com/kburson","followers_url":"https://api.github.com/users/kburson/followers","following_url":"https://api.github.com/users/kburson/following{/other_user}","gists_url":"https://api.github.com/users/kburson/gists{/gist_id}","starred_url":"https://api.github.com/users/kburson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kburson/subscriptions","organizations_url":"https://api.github.com/users/kburson/orgs","repos_url":"https://api.github.com/users/kburson/repos","events_url":"https://api.github.com/users/kburson/events{/privacy}","received_events_url":"https://api.github.com/users/kburson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-16T07:24:55Z","updated_at":"2015-10-30T20:45:58Z","closed_at":"2015-04-02T12:56:00Z","body":"Can you help me understand how the `karma.con.jsf:: systemjs` object relates to the `system.config.js::System.config({})` object ?  \r\nThe karma.config::system.js object references the system.config.js file:\r\n\r\n**karma.config.js**\r\n```\r\nmodule.exports = function (config) {\r\n    basePath: projectRoot,\r\n    urlRoot: '',\r\n    hostname: 'localhost',\r\n    frameworks: [ ...],\r\n    plugins: [...],\r\n    files: [],\r\n    systemjs: {                             // <---\r\n        configFile: 'system.config.js',     // <---\r\n        files: [...  ],\r\n        config: {\r\n            transpiler: 'traceur',\r\n            baseUrl: '/',\r\n            paths: {                          // <---\r\n                'asset':  'location'          // <---\r\n                ...\r\n            }\r\n        }\r\n        testFileSuffix: '.spec.js'\r\n    },\r\n    preprocessors: { ... },\r\n    reporters: [...],\r\n    browsers: [...]\r\n    port: 9876,\r\n    runnerPort: 9100\r\n}\r\n```\r\n\r\n**system.config.js**\r\n```\r\nSystem.config({\r\n    baseURL: '/', //relative to index.html location\r\n    paths: {                                 // <---\r\n         'asset':  'location'               // <---\r\n    },\r\n    meta: { ... },\r\n    map: { ... }\r\n});\r\n```\r\n\r\nThey both have `baseUrl` and `paths` objects for denoting location of dependencies.  Does the karma config object override the system.config.js settings?\r\n\r\nI have configured the system.config.js to locate my dependencies within a deployable build folder.\r\n\r\nI would like to have the karma systemjs settings look for those same dependencies in their 'natural habitat' whether that be bower_components or node_modules.  This way the unit/integration tests can run against the raw source files, while the e2e and manual testing would run against the pre-compiled app in the build folder.  This would be ideal.  Is this possible?\r\n\r\nLastly, if you have time, I would welcome a discussion about project structures and efficiency.  I am trying to find a structure that will work well for today and migrate easily for tomorrow (When ES6 and Angular 2.0 are mainstream).\r\n\r\nThanks,\r\n\r\nKendrick"},"comment":{"url":"https://api.github.com/repos/rolaveric/karma-systemjs/issues/comments/152647245","html_url":"https://github.com/rolaveric/karma-systemjs/issues/9#issuecomment-152647245","issue_url":"https://api.github.com/repos/rolaveric/karma-systemjs/issues/9","id":152647245,"user":{"login":"rolaveric","id":960670,"avatar_url":"https://avatars.githubusercontent.com/u/960670?v=3","gravatar_id":"","url":"https://api.github.com/users/rolaveric","html_url":"https://github.com/rolaveric","followers_url":"https://api.github.com/users/rolaveric/followers","following_url":"https://api.github.com/users/rolaveric/following{/other_user}","gists_url":"https://api.github.com/users/rolaveric/gists{/gist_id}","starred_url":"https://api.github.com/users/rolaveric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolaveric/subscriptions","organizations_url":"https://api.github.com/users/rolaveric/orgs","repos_url":"https://api.github.com/users/rolaveric/repos","events_url":"https://api.github.com/users/rolaveric/events{/privacy}","received_events_url":"https://api.github.com/users/rolaveric/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T20:45:58Z","updated_at":"2015-10-30T20:45:58Z","body":"Don't thank me yet - I still need to implement it."}}