{"action":"created","issue":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1311","repository_url":"https://api.github.com/repos/webdriverio/webdriverio","labels_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1311/labels{/name}","comments_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1311/comments","events_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1311/events","html_url":"https://github.com/webdriverio/webdriverio/pull/1311","id":155298532,"number":1311,"title":"Export Launcher","user":{"login":"monolithed","id":803674,"avatar_url":"https://avatars.githubusercontent.com/u/803674?v=3","gravatar_id":"","url":"https://api.github.com/users/monolithed","html_url":"https://github.com/monolithed","followers_url":"https://api.github.com/users/monolithed/followers","following_url":"https://api.github.com/users/monolithed/following{/other_user}","gists_url":"https://api.github.com/users/monolithed/gists{/gist_id}","starred_url":"https://api.github.com/users/monolithed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monolithed/subscriptions","organizations_url":"https://api.github.com/users/monolithed/orgs","repos_url":"https://api.github.com/users/monolithed/repos","events_url":"https://api.github.com/users/monolithed/events{/privacy}","received_events_url":"https://api.github.com/users/monolithed/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-17T16:05:20Z","updated_at":"2016-05-18T12:35:13Z","closed_at":"2016-05-17T17:31:13Z","pull_request":{"url":"https://api.github.com/repos/webdriverio/webdriverio/pulls/1311","html_url":"https://github.com/webdriverio/webdriverio/pull/1311","diff_url":"https://github.com/webdriverio/webdriverio/pull/1311.diff","patch_url":"https://github.com/webdriverio/webdriverio/pull/1311.patch"},"body":"## Proposed changes\r\n\r\nI have to launch my tests in a custom grunt plugin. And I found a [way](https://github.com/webdriverio/grunt-webdriver/blob/master/src/webdriver.js#L9):\r\n\r\n```js\r\nimport path from 'path'\r\nimport resolve from 'resolve'\r\n\r\nconst Launcher = require(path.join(path.dirname(resolve.sync('webdriverio')), 'lib/launcher'));\r\nnew Launcher(...);\r\n```\r\n\r\nBut this code is ugly, so I think we should to export the Launcher.\r\n\r\n```js\r\nimport WebdriverIO from 'webdriverio';\r\n\r\nnew WebdriverIO.Launcher(...);\r\n```\r\n\r\n## Types of changes\r\n\r\n- [x] New feature (non-breaking change which adds functionality)\r\n\r\n@christian-bromann, what do you think?\r\n"},"comment":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/comments/220012509","html_url":"https://github.com/webdriverio/webdriverio/pull/1311#issuecomment-220012509","issue_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1311","id":220012509,"user":{"login":"monolithed","id":803674,"avatar_url":"https://avatars.githubusercontent.com/u/803674?v=3","gravatar_id":"","url":"https://api.github.com/users/monolithed","html_url":"https://github.com/monolithed","followers_url":"https://api.github.com/users/monolithed/followers","following_url":"https://api.github.com/users/monolithed/following{/other_user}","gists_url":"https://api.github.com/users/monolithed/gists{/gist_id}","starred_url":"https://api.github.com/users/monolithed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monolithed/subscriptions","organizations_url":"https://api.github.com/users/monolithed/orgs","repos_url":"https://api.github.com/users/monolithed/repos","events_url":"https://api.github.com/users/monolithed/events{/privacy}","received_events_url":"https://api.github.com/users/monolithed/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T12:35:13Z","updated_at":"2016-05-18T12:35:13Z","body":"@christian-bromann, I would appreciate if you could publish to npm :)"}}