{"action":"created","issue":{"url":"https://api.github.com/repos/kadirahq/storyshots/issues/7","repository_url":"https://api.github.com/repos/kadirahq/storyshots","labels_url":"https://api.github.com/repos/kadirahq/storyshots/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/kadirahq/storyshots/issues/7/comments","events_url":"https://api.github.com/repos/kadirahq/storyshots/issues/7/events","html_url":"https://github.com/kadirahq/storyshots/issues/7","id":178299423,"number":7,"title":"Allow a way to add custom window/global polyfills","user":{"login":"arunoda","id":50838,"avatar_url":"https://avatars.githubusercontent.com/u/50838?v=3","gravatar_id":"","url":"https://api.github.com/users/arunoda","html_url":"https://github.com/arunoda","followers_url":"https://api.github.com/users/arunoda/followers","following_url":"https://api.github.com/users/arunoda/following{/other_user}","gists_url":"https://api.github.com/users/arunoda/gists{/gist_id}","starred_url":"https://api.github.com/users/arunoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arunoda/subscriptions","organizations_url":"https://api.github.com/users/arunoda/orgs","repos_url":"https://api.github.com/users/arunoda/repos","events_url":"https://api.github.com/users/arunoda/events{/privacy}","received_events_url":"https://api.github.com/users/arunoda/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-21T09:53:53Z","updated_at":"2016-09-22T08:00:38Z","closed_at":"2016-09-22T08:00:38Z","body":"Usually there are many window and global APIs developers use. \r\nWe can't give polyfills for all. But for common APIs.\r\nSo, we should let developers add their own polyfills.\r\n\r\nWe need to add a `myAPI` to the global namespace and `myOtherAPI` to window. \r\nThen we create a filename called `polyfills.js` as below:\r\n\r\n```js\r\nexports.window = {\r\n   myOtherAPI: {}\r\n};\r\n\r\nexports.global = {\r\n   myApi: {}\r\n};\r\n```\r\n\r\nAfter that, we add this via `testsnapshots --polyfills=./polyfills.js` file\r\n\r\nNow our components can use these custom APIs."},"comment":{"url":"https://api.github.com/repos/kadirahq/storyshots/issues/comments/248836927","html_url":"https://github.com/kadirahq/storyshots/issues/7#issuecomment-248836927","issue_url":"https://api.github.com/repos/kadirahq/storyshots/issues/7","id":248836927,"user":{"login":"arunoda","id":50838,"avatar_url":"https://avatars.githubusercontent.com/u/50838?v=3","gravatar_id":"","url":"https://api.github.com/users/arunoda","html_url":"https://github.com/arunoda","followers_url":"https://api.github.com/users/arunoda/followers","following_url":"https://api.github.com/users/arunoda/following{/other_user}","gists_url":"https://api.github.com/users/arunoda/gists{/gist_id}","starred_url":"https://api.github.com/users/arunoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arunoda/subscriptions","organizations_url":"https://api.github.com/users/arunoda/orgs","repos_url":"https://api.github.com/users/arunoda/repos","events_url":"https://api.github.com/users/arunoda/events{/privacy}","received_events_url":"https://api.github.com/users/arunoda/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T08:00:38Z","updated_at":"2016-09-22T08:00:38Z","body":"Implemented via https://github.com/kadirahq/storyshots/pull/10"}}
{"actor":{"display_login":"arunoda"}}