{"action":"created","issue":{"url":"https://api.github.com/repos/thelounge/lounge/issues/609","repository_url":"https://api.github.com/repos/thelounge/lounge","labels_url":"https://api.github.com/repos/thelounge/lounge/issues/609/labels{/name}","comments_url":"https://api.github.com/repos/thelounge/lounge/issues/609/comments","events_url":"https://api.github.com/repos/thelounge/lounge/issues/609/events","html_url":"https://github.com/thelounge/lounge/pull/609","id":176776106,"number":609,"title":"Add babel to the build process to allow ES2015","user":{"login":"nornagon","id":172800,"avatar_url":"https://avatars.githubusercontent.com/u/172800?v=3","gravatar_id":"","url":"https://api.github.com/users/nornagon","html_url":"https://github.com/nornagon","followers_url":"https://api.github.com/users/nornagon/followers","following_url":"https://api.github.com/users/nornagon/following{/other_user}","gists_url":"https://api.github.com/users/nornagon/gists{/gist_id}","starred_url":"https://api.github.com/users/nornagon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nornagon/subscriptions","organizations_url":"https://api.github.com/users/nornagon/orgs","repos_url":"https://api.github.com/users/nornagon/repos","events_url":"https://api.github.com/users/nornagon/events{/privacy}","received_events_url":"https://api.github.com/users/nornagon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-13T23:23:48Z","updated_at":"2016-09-21T01:46:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/thelounge/lounge/pulls/609","html_url":"https://github.com/thelounge/lounge/pull/609","diff_url":"https://github.com/thelounge/lounge/pull/609.diff","patch_url":"https://github.com/thelounge/lounge/pull/609.patch"},"body":"Fixes #426.\r\n\r\n[Some things that ES2015 enables](http://babeljs.io/docs/learn-es2015/):\r\n- Arrow functions: `(n => n + 5)`\r\n- Template strings: <code>\\`Hello ${\"world\"}`</code>\r\n- Destructuring: `var {foo, bar} = {foo: 3, bar: \"hi\"}`\r\n- `import`, so the 1000-line `lounge.js` can be broken up into modules\r\n\r\nThat said, it adds complexity too:\r\n- now you have to run `grunt watch` to rebuild on file change\r\n- ES2015 is imperfectly handled by babel; there are some things it can't transpile, and some which it can but which also require a polyfill to be loaded\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/thelounge/lounge/issues/comments/248487775","html_url":"https://github.com/thelounge/lounge/pull/609#issuecomment-248487775","issue_url":"https://api.github.com/repos/thelounge/lounge/issues/609","id":248487775,"user":{"login":"nornagon","id":172800,"avatar_url":"https://avatars.githubusercontent.com/u/172800?v=3","gravatar_id":"","url":"https://api.github.com/users/nornagon","html_url":"https://github.com/nornagon","followers_url":"https://api.github.com/users/nornagon/followers","following_url":"https://api.github.com/users/nornagon/following{/other_user}","gists_url":"https://api.github.com/users/nornagon/gists{/gist_id}","starred_url":"https://api.github.com/users/nornagon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nornagon/subscriptions","organizations_url":"https://api.github.com/users/nornagon/orgs","repos_url":"https://api.github.com/users/nornagon/repos","events_url":"https://api.github.com/users/nornagon/events{/privacy}","received_events_url":"https://api.github.com/users/nornagon/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T01:46:32Z","updated_at":"2016-09-21T01:46:32Z","body":"Updated to add webpack, fix lint, remove grunt stuff."}}
{"actor":{"display_login":"nornagon"}}