{"action":"created","issue":{"url":"https://api.github.com/repos/6to5/karma-6to5-preprocessor/issues/2","labels_url":"https://api.github.com/repos/6to5/karma-6to5-preprocessor/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/6to5/karma-6to5-preprocessor/issues/2/comments","events_url":"https://api.github.com/repos/6to5/karma-6to5-preprocessor/issues/2/events","html_url":"https://github.com/6to5/karma-6to5-preprocessor/pull/2","id":55174109,"number":2,"title":"Add `sourceRoot` to per-file options","user":{"login":"lukasmlady","id":1811738,"avatar_url":"https://avatars.githubusercontent.com/u/1811738?v=3","gravatar_id":"","url":"https://api.github.com/users/lukasmlady","html_url":"https://github.com/lukasmlady","followers_url":"https://api.github.com/users/lukasmlady/followers","following_url":"https://api.github.com/users/lukasmlady/following{/other_user}","gists_url":"https://api.github.com/users/lukasmlady/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasmlady/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasmlady/subscriptions","organizations_url":"https://api.github.com/users/lukasmlady/orgs","repos_url":"https://api.github.com/users/lukasmlady/repos","events_url":"https://api.github.com/users/lukasmlady/events{/privacy}","received_events_url":"https://api.github.com/users/lukasmlady/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-22T16:25:48Z","updated_at":"2015-02-10T09:07:28Z","closed_at":"2015-02-09T04:21:47Z","pull_request":{"url":"https://api.github.com/repos/6to5/karma-6to5-preprocessor/pulls/2","html_url":"https://github.com/6to5/karma-6to5-preprocessor/pull/2","diff_url":"https://github.com/6to5/karma-6to5-preprocessor/pull/2.diff","patch_url":"https://github.com/6to5/karma-6to5-preprocessor/pull/2.patch"},"body":"Use case:\r\n\r\nMain application code is modeled as ES 6 modules, unit test as well. Since they are in different folders, they might need different source root to make their names correct.\r\n\r\n## Example\r\n\r\nApplication code:\r\n`sourceRoot` is in `web/js` -> module in `web/js/utils/type.js` gets name `utils/type`.\r\n\r\nTesting code:\r\n`sourceRoot` is in `test/unit` -> module in `test/unit/utils/typeSpec.js` gets name `utils/typeSpec`.\r\n\r\nAnother thing about this is common need for auto-loading the test modules, do you think it would be of a benefit to include this in the preprocessor? (I myself use another custom preprocessor)."},"comment":{"url":"https://api.github.com/repos/6to5/karma-6to5-preprocessor/issues/comments/73666048","html_url":"https://github.com/6to5/karma-6to5-preprocessor/pull/2#issuecomment-73666048","issue_url":"https://api.github.com/repos/6to5/karma-6to5-preprocessor/issues/2","id":73666048,"user":{"login":"lukasmlady","id":1811738,"avatar_url":"https://avatars.githubusercontent.com/u/1811738?v=3","gravatar_id":"","url":"https://api.github.com/users/lukasmlady","html_url":"https://github.com/lukasmlady","followers_url":"https://api.github.com/users/lukasmlady/followers","following_url":"https://api.github.com/users/lukasmlady/following{/other_user}","gists_url":"https://api.github.com/users/lukasmlady/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasmlady/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasmlady/subscriptions","organizations_url":"https://api.github.com/users/lukasmlady/orgs","repos_url":"https://api.github.com/users/lukasmlady/repos","events_url":"https://api.github.com/users/lukasmlady/events{/privacy}","received_events_url":"https://api.github.com/users/lukasmlady/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T09:07:28Z","updated_at":"2015-02-10T09:07:28Z","body":"@shuhei great, thx."}}