{"action":"created","comment":{"url":"https://api.github.com/repos/gulpjs/gulp/pulls/comments/39639825","id":39639825,"diff_hunk":"@@ -480,31 +480,40 @@ A single glob or array of globs that indicate which files to watch for changes.\n #### opts\n Type: `Object`\n \n-Options, that are passed to [`gaze`][gaze].\n+Options, that are passed to [`chokidar`][chokidar].\n \n #### fn\n Type: `Function`\n \n An [async](#async-support) function to run when a file changes.\n \n-`gulp.watch` returns an `EventEmitter` object which emits `change` events with\n-the [gaze] `event`:\n+`gulp.watch` returns an `FSWatcher` object that already listens to the `change`","path":"docs/API.md","position":14,"original_position":14,"commit_id":"af0c6ea92d69da8e4542b7880da102b9453459fd","original_commit_id":"af0c6ea92d69da8e4542b7880da102b9453459fd","user":{"login":"es128","id":1740641,"avatar_url":"https://avatars.githubusercontent.com/u/1740641?v=3","gravatar_id":"","url":"https://api.github.com/users/es128","html_url":"https://github.com/es128","followers_url":"https://api.github.com/users/es128/followers","following_url":"https://api.github.com/users/es128/following{/other_user}","gists_url":"https://api.github.com/users/es128/gists{/gist_id}","starred_url":"https://api.github.com/users/es128/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/es128/subscriptions","organizations_url":"https://api.github.com/users/es128/orgs","repos_url":"https://api.github.com/users/es128/repos","events_url":"https://api.github.com/users/es128/events{/privacy}","received_events_url":"https://api.github.com/users/es128/received_events","type":"User","site_admin":false},"body":"Suggested edit:\r\n\r\nreturns a wrapped [chokidar] `FSWatcher` object. If provided, the callback will be triggered upon any `add`, `change`, or `unlink` event. Listeners can also be set directly for any of [chokidar]'s events.","created_at":"2015-09-16T14:54:39Z","updated_at":"2015-09-16T14:54:39Z","html_url":"https://github.com/gulpjs/gulp/pull/1259#discussion_r39639825","pull_request_url":"https://api.github.com/repos/gulpjs/gulp/pulls/1259","_links":{"self":{"href":"https://api.github.com/repos/gulpjs/gulp/pulls/comments/39639825"},"html":{"href":"https://github.com/gulpjs/gulp/pull/1259#discussion_r39639825"},"pull_request":{"href":"https://api.github.com/repos/gulpjs/gulp/pulls/1259"}}},"pull_request":{"url":"https://api.github.com/repos/gulpjs/gulp/pulls/1259","id":45143708,"html_url":"https://github.com/gulpjs/gulp/pull/1259","diff_url":"https://github.com/gulpjs/gulp/pull/1259.diff","patch_url":"https://github.com/gulpjs/gulp/pull/1259.patch","issue_url":"https://api.github.com/repos/gulpjs/gulp/issues/1259","number":1259,"state":"open","locked":false,"title":"Moving from vinyl-fs watch (gaze) to chokidar, fixes #1247","user":{"login":"ddprrt","id":1374451,"avatar_url":"https://avatars.githubusercontent.com/u/1374451?v=3","gravatar_id":"","url":"https://api.github.com/users/ddprrt","html_url":"https://github.com/ddprrt","followers_url":"https://api.github.com/users/ddprrt/followers","following_url":"https://api.github.com/users/ddprrt/following{/other_user}","gists_url":"https://api.github.com/users/ddprrt/gists{/gist_id}","starred_url":"https://api.github.com/users/ddprrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddprrt/subscriptions","organizations_url":"https://api.github.com/users/ddprrt/orgs","repos_url":"https://api.github.com/users/ddprrt/repos","events_url":"https://api.github.com/users/ddprrt/events{/privacy}","received_events_url":"https://api.github.com/users/ddprrt/received_events","type":"User","site_admin":false},"body":"I gave integrating chokidar a shot. I hope you don't mind @es128. I see it as some exercise for me, so if you have any better solution, I don't mind having this PR going down ;-)\r\n\r\nNaturally, I felt really uncomfortable changing tests ;-) But due to chokidar's different API, I had to. The changes were rather small, though. I also updated the recipes and docs.\r\n\r\nLooking forward to your feedback\r\n\r\nFixes #1247 ","created_at":"2015-09-16T08:27:55Z","updated_at":"2015-09-16T14:54:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e675c97b20a3ea0776e52eb15c79a394b20037cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gulpjs/gulp/pulls/1259/commits","review_comments_url":"https://api.github.com/repos/gulpjs/gulp/pulls/1259/comments","review_comment_url":"https://api.github.com/repos/gulpjs/gulp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gulpjs/gulp/issues/1259/comments","statuses_url":"https://api.github.com/repos/gulpjs/gulp/statuses/af0c6ea92d69da8e4542b7880da102b9453459fd","head":{"label":"ddprrt:4.0-chokidar","ref":"4.0-chokidar","sha":"af0c6ea92d69da8e4542b7880da102b9453459fd","user":{"login":"ddprrt","id":1374451,"avatar_url":"https://avatars.githubusercontent.com/u/1374451?v=3","gravatar_id":"","url":"https://api.github.com/users/ddprrt","html_url":"https://github.com/ddprrt","followers_url":"https://api.github.com/users/ddprrt/followers","following_url":"https://api.github.com/users/ddprrt/following{/other_user}","gists_url":"https://api.github.com/users/ddprrt/gists{/gist_id}","starred_url":"https://api.github.com/users/ddprrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddprrt/subscriptions","organizations_url":"https://api.github.com/users/ddprrt/orgs","repos_url":"https://api.github.com/users/ddprrt/repos","events_url":"https://api.github.com/users/ddprrt/events{/privacy}","received_events_url":"https://api.github.com/users/ddprrt/received_events","type":"User","site_admin":false},"repo":{"id":42512015,"name":"gulp","full_name":"ddprrt/gulp","owner":{"login":"ddprrt","id":1374451,"avatar_url":"https://avatars.githubusercontent.com/u/1374451?v=3","gravatar_id":"","url":"https://api.github.com/users/ddprrt","html_url":"https://github.com/ddprrt","followers_url":"https://api.github.com/users/ddprrt/followers","following_url":"https://api.github.com/users/ddprrt/following{/other_user}","gists_url":"https://api.github.com/users/ddprrt/gists{/gist_id}","starred_url":"https://api.github.com/users/ddprrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddprrt/subscriptions","organizations_url":"https://api.github.com/users/ddprrt/orgs","repos_url":"https://api.github.com/users/ddprrt/repos","events_url":"https://api.github.com/users/ddprrt/events{/privacy}","received_events_url":"https://api.github.com/users/ddprrt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ddprrt/gulp","description":"The streaming build system","fork":true,"url":"https://api.github.com/repos/ddprrt/gulp","forks_url":"https://api.github.com/repos/ddprrt/gulp/forks","keys_url":"https://api.github.com/repos/ddprrt/gulp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ddprrt/gulp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ddprrt/gulp/teams","hooks_url":"https://api.github.com/repos/ddprrt/gulp/hooks","issue_events_url":"https://api.github.com/repos/ddprrt/gulp/issues/events{/number}","events_url":"https://api.github.com/repos/ddprrt/gulp/events","assignees_url":"https://api.github.com/repos/ddprrt/gulp/assignees{/user}","branches_url":"https://api.github.com/repos/ddprrt/gulp/branches{/branch}","tags_url":"https://api.github.com/repos/ddprrt/gulp/tags","blobs_url":"https://api.github.com/repos/ddprrt/gulp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ddprrt/gulp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ddprrt/gulp/git/refs{/sha}","trees_url":"https://api.github.com/repos/ddprrt/gulp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ddprrt/gulp/statuses/{sha}","languages_url":"https://api.github.com/repos/ddprrt/gulp/languages","stargazers_url":"https://api.github.com/repos/ddprrt/gulp/stargazers","contributors_url":"https://api.github.com/repos/ddprrt/gulp/contributors","subscribers_url":"https://api.github.com/repos/ddprrt/gulp/subscribers","subscription_url":"https://api.github.com/repos/ddprrt/gulp/subscription","commits_url":"https://api.github.com/repos/ddprrt/gulp/commits{/sha}","git_commits_url":"https://api.github.com/repos/ddprrt/gulp/git/commits{/sha}","comments_url":"https://api.github.com/repos/ddprrt/gulp/comments{/number}","issue_comment_url":"https://api.github.com/repos/ddprrt/gulp/issues/comments{/number}","contents_url":"https://api.github.com/repos/ddprrt/gulp/contents/{+path}","compare_url":"https://api.github.com/repos/ddprrt/gulp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ddprrt/gulp/merges","archive_url":"https://api.github.com/repos/ddprrt/gulp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ddprrt/gulp/downloads","issues_url":"https://api.github.com/repos/ddprrt/gulp/issues{/number}","pulls_url":"https://api.github.com/repos/ddprrt/gulp/pulls{/number}","milestones_url":"https://api.github.com/repos/ddprrt/gulp/milestones{/number}","notifications_url":"https://api.github.com/repos/ddprrt/gulp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ddprrt/gulp/labels{/name}","releases_url":"https://api.github.com/repos/ddprrt/gulp/releases{/id}","created_at":"2015-09-15T10:40:05Z","updated_at":"2015-09-15T10:40:06Z","pushed_at":"2015-09-16T10:09:49Z","git_url":"git://github.com/ddprrt/gulp.git","ssh_url":"git@github.com:ddprrt/gulp.git","clone_url":"https://github.com/ddprrt/gulp.git","svn_url":"https://github.com/ddprrt/gulp","homepage":"http://gulpjs.com","size":3923,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gulpjs:4.0","ref":"4.0","sha":"bbe3c56138a9ede627879d7e47daffd0a6d9b6db","user":{"login":"gulpjs","id":6200624,"avatar_url":"https://avatars.githubusercontent.com/u/6200624?v=3","gravatar_id":"","url":"https://api.github.com/users/gulpjs","html_url":"https://github.com/gulpjs","followers_url":"https://api.github.com/users/gulpjs/followers","following_url":"https://api.github.com/users/gulpjs/following{/other_user}","gists_url":"https://api.github.com/users/gulpjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gulpjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gulpjs/subscriptions","organizations_url":"https://api.github.com/users/gulpjs/orgs","repos_url":"https://api.github.com/users/gulpjs/repos","events_url":"https://api.github.com/users/gulpjs/events{/privacy}","received_events_url":"https://api.github.com/users/gulpjs/received_events","type":"Organization","site_admin":false},"repo":{"id":11167738,"name":"gulp","full_name":"gulpjs/gulp","owner":{"login":"gulpjs","id":6200624,"avatar_url":"https://avatars.githubusercontent.com/u/6200624?v=3","gravatar_id":"","url":"https://api.github.com/users/gulpjs","html_url":"https://github.com/gulpjs","followers_url":"https://api.github.com/users/gulpjs/followers","following_url":"https://api.github.com/users/gulpjs/following{/other_user}","gists_url":"https://api.github.com/users/gulpjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gulpjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gulpjs/subscriptions","organizations_url":"https://api.github.com/users/gulpjs/orgs","repos_url":"https://api.github.com/users/gulpjs/repos","events_url":"https://api.github.com/users/gulpjs/events{/privacy}","received_events_url":"https://api.github.com/users/gulpjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gulpjs/gulp","description":"The streaming build system","fork":false,"url":"https://api.github.com/repos/gulpjs/gulp","forks_url":"https://api.github.com/repos/gulpjs/gulp/forks","keys_url":"https://api.github.com/repos/gulpjs/gulp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gulpjs/gulp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gulpjs/gulp/teams","hooks_url":"https://api.github.com/repos/gulpjs/gulp/hooks","issue_events_url":"https://api.github.com/repos/gulpjs/gulp/issues/events{/number}","events_url":"https://api.github.com/repos/gulpjs/gulp/events","assignees_url":"https://api.github.com/repos/gulpjs/gulp/assignees{/user}","branches_url":"https://api.github.com/repos/gulpjs/gulp/branches{/branch}","tags_url":"https://api.github.com/repos/gulpjs/gulp/tags","blobs_url":"https://api.github.com/repos/gulpjs/gulp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gulpjs/gulp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gulpjs/gulp/git/refs{/sha}","trees_url":"https://api.github.com/repos/gulpjs/gulp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gulpjs/gulp/statuses/{sha}","languages_url":"https://api.github.com/repos/gulpjs/gulp/languages","stargazers_url":"https://api.github.com/repos/gulpjs/gulp/stargazers","contributors_url":"https://api.github.com/repos/gulpjs/gulp/contributors","subscribers_url":"https://api.github.com/repos/gulpjs/gulp/subscribers","subscription_url":"https://api.github.com/repos/gulpjs/gulp/subscription","commits_url":"https://api.github.com/repos/gulpjs/gulp/commits{/sha}","git_commits_url":"https://api.github.com/repos/gulpjs/gulp/git/commits{/sha}","comments_url":"https://api.github.com/repos/gulpjs/gulp/comments{/number}","issue_comment_url":"https://api.github.com/repos/gulpjs/gulp/issues/comments{/number}","contents_url":"https://api.github.com/repos/gulpjs/gulp/contents/{+path}","compare_url":"https://api.github.com/repos/gulpjs/gulp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gulpjs/gulp/merges","archive_url":"https://api.github.com/repos/gulpjs/gulp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gulpjs/gulp/downloads","issues_url":"https://api.github.com/repos/gulpjs/gulp/issues{/number}","pulls_url":"https://api.github.com/repos/gulpjs/gulp/pulls{/number}","milestones_url":"https://api.github.com/repos/gulpjs/gulp/milestones{/number}","notifications_url":"https://api.github.com/repos/gulpjs/gulp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gulpjs/gulp/labels{/name}","releases_url":"https://api.github.com/repos/gulpjs/gulp/releases{/id}","created_at":"2013-07-04T05:26:06Z","updated_at":"2015-09-16T13:01:26Z","pushed_at":"2015-09-16T10:09:53Z","git_url":"git://github.com/gulpjs/gulp.git","ssh_url":"git@github.com:gulpjs/gulp.git","clone_url":"https://github.com/gulpjs/gulp.git","svn_url":"https://github.com/gulpjs/gulp","homepage":"http://gulpjs.com","size":3923,"stargazers_count":16208,"watchers_count":16208,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1691,"mirror_url":null,"open_issues_count":40,"forks":1691,"open_issues":40,"watchers":16208,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gulpjs/gulp/pulls/1259"},"html":{"href":"https://github.com/gulpjs/gulp/pull/1259"},"issue":{"href":"https://api.github.com/repos/gulpjs/gulp/issues/1259"},"comments":{"href":"https://api.github.com/repos/gulpjs/gulp/issues/1259/comments"},"review_comments":{"href":"https://api.github.com/repos/gulpjs/gulp/pulls/1259/comments"},"review_comment":{"href":"https://api.github.com/repos/gulpjs/gulp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gulpjs/gulp/pulls/1259/commits"},"statuses":{"href":"https://api.github.com/repos/gulpjs/gulp/statuses/af0c6ea92d69da8e4542b7880da102b9453459fd"}}}}