{"action":"opened","number":45,"pull_request":{"url":"https://api.github.com/repos/makojs/serve/pulls/45","id":85342070,"html_url":"https://github.com/makojs/serve/pull/45","diff_url":"https://github.com/makojs/serve/pull/45.diff","patch_url":"https://github.com/makojs/serve/pull/45.patch","issue_url":"https://api.github.com/repos/makojs/serve/issues/45","number":45,"state":"open","locked":false,"title":"Adding basic livereload support to the CLI (fixes #29)","user":{"login":"dominicbarnes","id":160197,"avatar_url":"https://avatars.githubusercontent.com/u/160197?v=3","gravatar_id":"","url":"https://api.github.com/users/dominicbarnes","html_url":"https://github.com/dominicbarnes","followers_url":"https://api.github.com/users/dominicbarnes/followers","following_url":"https://api.github.com/users/dominicbarnes/following{/other_user}","gists_url":"https://api.github.com/users/dominicbarnes/gists{/gist_id}","starred_url":"https://api.github.com/users/dominicbarnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominicbarnes/subscriptions","organizations_url":"https://api.github.com/users/dominicbarnes/orgs","repos_url":"https://api.github.com/users/dominicbarnes/repos","events_url":"https://api.github.com/users/dominicbarnes/events{/privacy}","received_events_url":"https://api.github.com/users/dominicbarnes/received_events","type":"User","site_admin":false},"body":"This uses the [livereload](https://www.npmjs.com/package/livereload) package to add basic livereload support to the CLI. By adding `-l, --livereload`, a livereload server will be started in addition to the base server.\r\n\r\nThe easiest way to use this is with a browser extension, but it can also be done by adding a `<script src=\"http://localhost:35729/livereload.js\"></script>` to the HTML. I prefer the first approach for now, since the latter could end up going into production if you don't remember to take it out. Over the long-term, this will be polished a bit more.","created_at":"2016-09-15T03:57:07Z","updated_at":"2016-09-15T03:57:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/makojs/serve/pulls/45/commits","review_comments_url":"https://api.github.com/repos/makojs/serve/pulls/45/comments","review_comment_url":"https://api.github.com/repos/makojs/serve/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makojs/serve/issues/45/comments","statuses_url":"https://api.github.com/repos/makojs/serve/statuses/6e79d24d4a81d8d54513012b9ca561197806efed","head":{"label":"makojs:livereload","ref":"livereload","sha":"6e79d24d4a81d8d54513012b9ca561197806efed","user":{"login":"makojs","id":15081797,"avatar_url":"https://avatars.githubusercontent.com/u/15081797?v=3","gravatar_id":"","url":"https://api.github.com/users/makojs","html_url":"https://github.com/makojs","followers_url":"https://api.github.com/users/makojs/followers","following_url":"https://api.github.com/users/makojs/following{/other_user}","gists_url":"https://api.github.com/users/makojs/gists{/gist_id}","starred_url":"https://api.github.com/users/makojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makojs/subscriptions","organizations_url":"https://api.github.com/users/makojs/orgs","repos_url":"https://api.github.com/users/makojs/repos","events_url":"https://api.github.com/users/makojs/events{/privacy}","received_events_url":"https://api.github.com/users/makojs/received_events","type":"Organization","site_admin":false},"repo":{"id":45898116,"name":"serve","full_name":"makojs/serve","owner":{"login":"makojs","id":15081797,"avatar_url":"https://avatars.githubusercontent.com/u/15081797?v=3","gravatar_id":"","url":"https://api.github.com/users/makojs","html_url":"https://github.com/makojs","followers_url":"https://api.github.com/users/makojs/followers","following_url":"https://api.github.com/users/makojs/following{/other_user}","gists_url":"https://api.github.com/users/makojs/gists{/gist_id}","starred_url":"https://api.github.com/users/makojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makojs/subscriptions","organizations_url":"https://api.github.com/users/makojs/orgs","repos_url":"https://api.github.com/users/makojs/repos","events_url":"https://api.github.com/users/makojs/events{/privacy}","received_events_url":"https://api.github.com/users/makojs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/makojs/serve","description":"A tool for automatically building and serving files built via mako.","fork":false,"url":"https://api.github.com/repos/makojs/serve","forks_url":"https://api.github.com/repos/makojs/serve/forks","keys_url":"https://api.github.com/repos/makojs/serve/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makojs/serve/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makojs/serve/teams","hooks_url":"https://api.github.com/repos/makojs/serve/hooks","issue_events_url":"https://api.github.com/repos/makojs/serve/issues/events{/number}","events_url":"https://api.github.com/repos/makojs/serve/events","assignees_url":"https://api.github.com/repos/makojs/serve/assignees{/user}","branches_url":"https://api.github.com/repos/makojs/serve/branches{/branch}","tags_url":"https://api.github.com/repos/makojs/serve/tags","blobs_url":"https://api.github.com/repos/makojs/serve/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makojs/serve/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makojs/serve/git/refs{/sha}","trees_url":"https://api.github.com/repos/makojs/serve/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makojs/serve/statuses/{sha}","languages_url":"https://api.github.com/repos/makojs/serve/languages","stargazers_url":"https://api.github.com/repos/makojs/serve/stargazers","contributors_url":"https://api.github.com/repos/makojs/serve/contributors","subscribers_url":"https://api.github.com/repos/makojs/serve/subscribers","subscription_url":"https://api.github.com/repos/makojs/serve/subscription","commits_url":"https://api.github.com/repos/makojs/serve/commits{/sha}","git_commits_url":"https://api.github.com/repos/makojs/serve/git/commits{/sha}","comments_url":"https://api.github.com/repos/makojs/serve/comments{/number}","issue_comment_url":"https://api.github.com/repos/makojs/serve/issues/comments{/number}","contents_url":"https://api.github.com/repos/makojs/serve/contents/{+path}","compare_url":"https://api.github.com/repos/makojs/serve/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makojs/serve/merges","archive_url":"https://api.github.com/repos/makojs/serve/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makojs/serve/downloads","issues_url":"https://api.github.com/repos/makojs/serve/issues{/number}","pulls_url":"https://api.github.com/repos/makojs/serve/pulls{/number}","milestones_url":"https://api.github.com/repos/makojs/serve/milestones{/number}","notifications_url":"https://api.github.com/repos/makojs/serve/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makojs/serve/labels{/name}","releases_url":"https://api.github.com/repos/makojs/serve/releases{/id}","deployments_url":"https://api.github.com/repos/makojs/serve/deployments","created_at":"2015-11-10T08:25:51Z","updated_at":"2016-01-16T16:57:20Z","pushed_at":"2016-09-15T03:57:07Z","git_url":"git://github.com/makojs/serve.git","ssh_url":"git@github.com:makojs/serve.git","clone_url":"https://github.com/makojs/serve.git","svn_url":"https://github.com/makojs/serve","homepage":"","size":78,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"makojs:master","ref":"master","sha":"ab0fc1068889edc57f039d0f9174ea3e1aac1700","user":{"login":"makojs","id":15081797,"avatar_url":"https://avatars.githubusercontent.com/u/15081797?v=3","gravatar_id":"","url":"https://api.github.com/users/makojs","html_url":"https://github.com/makojs","followers_url":"https://api.github.com/users/makojs/followers","following_url":"https://api.github.com/users/makojs/following{/other_user}","gists_url":"https://api.github.com/users/makojs/gists{/gist_id}","starred_url":"https://api.github.com/users/makojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makojs/subscriptions","organizations_url":"https://api.github.com/users/makojs/orgs","repos_url":"https://api.github.com/users/makojs/repos","events_url":"https://api.github.com/users/makojs/events{/privacy}","received_events_url":"https://api.github.com/users/makojs/received_events","type":"Organization","site_admin":false},"repo":{"id":45898116,"name":"serve","full_name":"makojs/serve","owner":{"login":"makojs","id":15081797,"avatar_url":"https://avatars.githubusercontent.com/u/15081797?v=3","gravatar_id":"","url":"https://api.github.com/users/makojs","html_url":"https://github.com/makojs","followers_url":"https://api.github.com/users/makojs/followers","following_url":"https://api.github.com/users/makojs/following{/other_user}","gists_url":"https://api.github.com/users/makojs/gists{/gist_id}","starred_url":"https://api.github.com/users/makojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makojs/subscriptions","organizations_url":"https://api.github.com/users/makojs/orgs","repos_url":"https://api.github.com/users/makojs/repos","events_url":"https://api.github.com/users/makojs/events{/privacy}","received_events_url":"https://api.github.com/users/makojs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/makojs/serve","description":"A tool for automatically building and serving files built via mako.","fork":false,"url":"https://api.github.com/repos/makojs/serve","forks_url":"https://api.github.com/repos/makojs/serve/forks","keys_url":"https://api.github.com/repos/makojs/serve/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makojs/serve/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makojs/serve/teams","hooks_url":"https://api.github.com/repos/makojs/serve/hooks","issue_events_url":"https://api.github.com/repos/makojs/serve/issues/events{/number}","events_url":"https://api.github.com/repos/makojs/serve/events","assignees_url":"https://api.github.com/repos/makojs/serve/assignees{/user}","branches_url":"https://api.github.com/repos/makojs/serve/branches{/branch}","tags_url":"https://api.github.com/repos/makojs/serve/tags","blobs_url":"https://api.github.com/repos/makojs/serve/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makojs/serve/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makojs/serve/git/refs{/sha}","trees_url":"https://api.github.com/repos/makojs/serve/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makojs/serve/statuses/{sha}","languages_url":"https://api.github.com/repos/makojs/serve/languages","stargazers_url":"https://api.github.com/repos/makojs/serve/stargazers","contributors_url":"https://api.github.com/repos/makojs/serve/contributors","subscribers_url":"https://api.github.com/repos/makojs/serve/subscribers","subscription_url":"https://api.github.com/repos/makojs/serve/subscription","commits_url":"https://api.github.com/repos/makojs/serve/commits{/sha}","git_commits_url":"https://api.github.com/repos/makojs/serve/git/commits{/sha}","comments_url":"https://api.github.com/repos/makojs/serve/comments{/number}","issue_comment_url":"https://api.github.com/repos/makojs/serve/issues/comments{/number}","contents_url":"https://api.github.com/repos/makojs/serve/contents/{+path}","compare_url":"https://api.github.com/repos/makojs/serve/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makojs/serve/merges","archive_url":"https://api.github.com/repos/makojs/serve/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makojs/serve/downloads","issues_url":"https://api.github.com/repos/makojs/serve/issues{/number}","pulls_url":"https://api.github.com/repos/makojs/serve/pulls{/number}","milestones_url":"https://api.github.com/repos/makojs/serve/milestones{/number}","notifications_url":"https://api.github.com/repos/makojs/serve/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makojs/serve/labels{/name}","releases_url":"https://api.github.com/repos/makojs/serve/releases{/id}","deployments_url":"https://api.github.com/repos/makojs/serve/deployments","created_at":"2015-11-10T08:25:51Z","updated_at":"2016-01-16T16:57:20Z","pushed_at":"2016-09-15T03:57:07Z","git_url":"git://github.com/makojs/serve.git","ssh_url":"git@github.com:makojs/serve.git","clone_url":"https://github.com/makojs/serve.git","svn_url":"https://github.com/makojs/serve","homepage":"","size":78,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makojs/serve/pulls/45"},"html":{"href":"https://github.com/makojs/serve/pull/45"},"issue":{"href":"https://api.github.com/repos/makojs/serve/issues/45"},"comments":{"href":"https://api.github.com/repos/makojs/serve/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/makojs/serve/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/makojs/serve/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makojs/serve/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/makojs/serve/statuses/6e79d24d4a81d8d54513012b9ca561197806efed"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":14,"deletions":1,"changed_files":3}}
{"actor":{"display_login":"dominicbarnes"}}