{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/nunjucks/issues/607","labels_url":"https://api.github.com/repos/mozilla/nunjucks/issues/607/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/nunjucks/issues/607/comments","events_url":"https://api.github.com/repos/mozilla/nunjucks/issues/607/events","html_url":"https://github.com/mozilla/nunjucks/pull/607","id":121838951,"number":607,"title":"chokidar on demand","user":{"login":"at0g","id":1406770,"avatar_url":"https://avatars.githubusercontent.com/u/1406770?v=3","gravatar_id":"","url":"https://api.github.com/users/at0g","html_url":"https://github.com/at0g","followers_url":"https://api.github.com/users/at0g/followers","following_url":"https://api.github.com/users/at0g/following{/other_user}","gists_url":"https://api.github.com/users/at0g/gists{/gist_id}","starred_url":"https://api.github.com/users/at0g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at0g/subscriptions","organizations_url":"https://api.github.com/users/at0g/orgs","repos_url":"https://api.github.com/users/at0g/repos","events_url":"https://api.github.com/users/at0g/events{/privacy}","received_events_url":"https://api.github.com/users/at0g/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla/nunjucks/labels/needs-docs","name":"needs-docs","color":"bfdadc"},{"url":"https://api.github.com/repos/mozilla/nunjucks/labels/packaging","name":"packaging","color":"bfe5bf"},{"url":"https://api.github.com/repos/mozilla/nunjucks/labels/patch-needs-improvement","name":"patch-needs-improvement","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-12-12T07:19:43Z","updated_at":"2016-01-10T06:52:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla/nunjucks/pulls/607","html_url":"https://github.com/mozilla/nunjucks/pull/607","diff_url":"https://github.com/mozilla/nunjucks/pull/607.diff","patch_url":"https://github.com/mozilla/nunjucks/pull/607.patch"},"body":"- make chokidar an optional dependency\r\n- only require chokidar when `{ watch: true }`\r\n- if chokidar is not installed and `{ watch: true }`, notify the user with a console error (but don't fail)\r\n\r\nFixes #600 "},"comment":{"url":"https://api.github.com/repos/mozilla/nunjucks/issues/comments/170320979","html_url":"https://github.com/mozilla/nunjucks/pull/607#issuecomment-170320979","issue_url":"https://api.github.com/repos/mozilla/nunjucks/issues/607","id":170320979,"user":{"login":"carljm","id":61586,"avatar_url":"https://avatars.githubusercontent.com/u/61586?v=3","gravatar_id":"","url":"https://api.github.com/users/carljm","html_url":"https://github.com/carljm","followers_url":"https://api.github.com/users/carljm/followers","following_url":"https://api.github.com/users/carljm/following{/other_user}","gists_url":"https://api.github.com/users/carljm/gists{/gist_id}","starred_url":"https://api.github.com/users/carljm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carljm/subscriptions","organizations_url":"https://api.github.com/users/carljm/orgs","repos_url":"https://api.github.com/users/carljm/repos","events_url":"https://api.github.com/users/carljm/events{/privacy}","received_events_url":"https://api.github.com/users/carljm/received_events","type":"User","site_admin":false},"created_at":"2016-01-10T06:52:46Z","updated_at":"2016-01-10T06:52:46Z","body":"@ricordisamoa Oh! I actually missed that, thanks for pointing it out. I don't feel strongly, but yeah I think we may as well just throw in that case. There's no reason to proceed with an invalid configuration, the user should just fix it one way or another (install chokidar, or don't set `watch: true`)."}}