{"action":"created","issue":{"url":"https://api.github.com/repos/rolaveric/karma-systemjs/issues/76","repository_url":"https://api.github.com/repos/rolaveric/karma-systemjs","labels_url":"https://api.github.com/repos/rolaveric/karma-systemjs/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/rolaveric/karma-systemjs/issues/76/comments","events_url":"https://api.github.com/repos/rolaveric/karma-systemjs/issues/76/events","html_url":"https://github.com/rolaveric/karma-systemjs/issues/76","id":150475522,"number":76,"title":"Support a imports config property for systemjs config","user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-22T21:31:27Z","updated_at":"2016-04-24T00:10:33Z","closed_at":null,"body":"Just been playing around with this, and it seems great. I was just thinking if I want to write my tests themselves as modules loaded through SystemJS, then it can be useful to have configuration to set the tests up as imports themselves, something like:\r\n\r\n```javascript\r\nsystemjs: {\r\n  import: ['test/main.js']\r\n}\r\n```\r\n\r\nWhere it then automatically imports those files in the browser through SystemJS."},"comment":{"url":"https://api.github.com/repos/rolaveric/karma-systemjs/issues/comments/213856620","html_url":"https://github.com/rolaveric/karma-systemjs/issues/76#issuecomment-213856620","issue_url":"https://api.github.com/repos/rolaveric/karma-systemjs/issues/76","id":213856620,"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":"2016-04-24T00:10:33Z","updated_at":"2016-04-24T00:10:33Z","body":"You're right, it is very custom behavior for Karma. But it felt like the least-surprising approach for users.\r\nAll the standard Karma configuration tells you to put your file globs into `files`. If those files need to be transpiled, you're just going to get a lot of errors.\r\nWith the current approach, running all `include: true` pattern through `System.import`, the worst you get is a bit more processing than is absolutely required.\r\n\r\nStill, you make a good point that there's no option for powerusers who fully understand how SystemJS works to `System.import` files without any magic to confuse the issue.\r\nThere's already a `serveFiles` and an `includeFiles` property - how about an `importFiles` property to match the standard, and I can rewrite the README to encourage their use.\r\nThat'll give us the best of both worlds: New users working off default Karma configuration won't be too confused, and powerusers can specify exactly what they want.\r\n\r\nThoughts?"}}