{"action":"created","issue":{"url":"https://api.github.com/repos/caspervonb/amok/issues/50","labels_url":"https://api.github.com/repos/caspervonb/amok/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/caspervonb/amok/issues/50/comments","events_url":"https://api.github.com/repos/caspervonb/amok/issues/50/events","html_url":"https://github.com/caspervonb/amok/issues/50","id":66326968,"number":50,"title":"Post-compilation hooks","user":{"login":"barneycarroll","id":83627,"avatar_url":"https://avatars.githubusercontent.com/u/83627?v=3","gravatar_id":"","url":"https://api.github.com/users/barneycarroll","html_url":"https://github.com/barneycarroll","followers_url":"https://api.github.com/users/barneycarroll/followers","following_url":"https://api.github.com/users/barneycarroll/following{/other_user}","gists_url":"https://api.github.com/users/barneycarroll/gists{/gist_id}","starred_url":"https://api.github.com/users/barneycarroll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barneycarroll/subscriptions","organizations_url":"https://api.github.com/users/barneycarroll/orgs","repos_url":"https://api.github.com/users/barneycarroll/repos","events_url":"https://api.github.com/users/barneycarroll/events{/privacy}","received_events_url":"https://api.github.com/users/barneycarroll/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/caspervonb/amok/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"caspervonb","id":157787,"avatar_url":"https://avatars.githubusercontent.com/u/157787?v=3","gravatar_id":"","url":"https://api.github.com/users/caspervonb","html_url":"https://github.com/caspervonb","followers_url":"https://api.github.com/users/caspervonb/followers","following_url":"https://api.github.com/users/caspervonb/following{/other_user}","gists_url":"https://api.github.com/users/caspervonb/gists{/gist_id}","starred_url":"https://api.github.com/users/caspervonb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caspervonb/subscriptions","organizations_url":"https://api.github.com/users/caspervonb/orgs","repos_url":"https://api.github.com/users/caspervonb/repos","events_url":"https://api.github.com/users/caspervonb/events{/privacy}","received_events_url":"https://api.github.com/users/caspervonb/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/caspervonb/amok/milestones/2","html_url":"https://github.com/caspervonb/amok/milestones/0.13.0","labels_url":"https://api.github.com/repos/caspervonb/amok/milestones/2/labels","id":1057583,"number":2,"title":"0.13.0","description":"","creator":{"login":"caspervonb","id":157787,"avatar_url":"https://avatars.githubusercontent.com/u/157787?v=3","gravatar_id":"","url":"https://api.github.com/users/caspervonb","html_url":"https://github.com/caspervonb","followers_url":"https://api.github.com/users/caspervonb/followers","following_url":"https://api.github.com/users/caspervonb/following{/other_user}","gists_url":"https://api.github.com/users/caspervonb/gists{/gist_id}","starred_url":"https://api.github.com/users/caspervonb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caspervonb/subscriptions","organizations_url":"https://api.github.com/users/caspervonb/orgs","repos_url":"https://api.github.com/users/caspervonb/repos","events_url":"https://api.github.com/users/caspervonb/events{/privacy}","received_events_url":"https://api.github.com/users/caspervonb/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2015-04-08T05:07:40Z","updated_at":"2015-04-09T07:58:38Z","due_on":null,"closed_at":null},"comments":18,"created_at":"2015-04-04T14:34:53Z","updated_at":"2015-04-09T15:05:51Z","closed_at":"2015-04-09T07:58:38Z","body":"It strikes me that the sensitivity of re-compilation in-situ may not automatically manifest the changes the author might expect. The setTimeout approach in the demo works as intended but depending on the structure of the application under development a few application-specific hooks may be necessary if the author wants to see the effects of their modifications to source. For instance I use a DOM abstraction library, Mithril, which relies on 'redraw' hooks to persist state changes to the DOM. In my situation, I have to either trigger a user action or refresh the DOM in order to see the effects of my latest re-compilation — at which point I'm better off using Browsersync (although of course I'll lose all my in-memory session state).\r\n\r\nHow about a 'post-compile' API that allows the user to specify custom script to execute in the browser environment upon successful live re-compilation?"},"comment":{"url":"https://api.github.com/repos/caspervonb/amok/issues/comments/91257311","html_url":"https://github.com/caspervonb/amok/issues/50#issuecomment-91257311","issue_url":"https://api.github.com/repos/caspervonb/amok/issues/50","id":91257311,"user":{"login":"caspervonb","id":157787,"avatar_url":"https://avatars.githubusercontent.com/u/157787?v=3","gravatar_id":"","url":"https://api.github.com/users/caspervonb","html_url":"https://github.com/caspervonb","followers_url":"https://api.github.com/users/caspervonb/followers","following_url":"https://api.github.com/users/caspervonb/following{/other_user}","gists_url":"https://api.github.com/users/caspervonb/gists{/gist_id}","starred_url":"https://api.github.com/users/caspervonb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caspervonb/subscriptions","organizations_url":"https://api.github.com/users/caspervonb/orgs","repos_url":"https://api.github.com/users/caspervonb/repos","events_url":"https://api.github.com/users/caspervonb/events{/privacy}","received_events_url":"https://api.github.com/users/caspervonb/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T15:05:51Z","updated_at":"2015-04-09T15:05:51Z","body":"It's a secret release! ;)"}}