{"action":"created","issue":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/1372","labels_url":"https://api.github.com/repos/gulpjs/gulp/issues/1372/labels{/name}","comments_url":"https://api.github.com/repos/gulpjs/gulp/issues/1372/comments","events_url":"https://api.github.com/repos/gulpjs/gulp/issues/1372/events","html_url":"https://github.com/gulpjs/gulp/issues/1372","id":115040741,"number":1372,"title":"`gulp.watch()` and the initial run","user":{"login":"mprobst","id":7208,"avatar_url":"https://avatars.githubusercontent.com/u/7208?v=3","gravatar_id":"","url":"https://api.github.com/users/mprobst","html_url":"https://github.com/mprobst","followers_url":"https://api.github.com/users/mprobst/followers","following_url":"https://api.github.com/users/mprobst/following{/other_user}","gists_url":"https://api.github.com/users/mprobst/gists{/gist_id}","starred_url":"https://api.github.com/users/mprobst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mprobst/subscriptions","organizations_url":"https://api.github.com/users/mprobst/orgs","repos_url":"https://api.github.com/users/mprobst/repos","events_url":"https://api.github.com/users/mprobst/events{/privacy}","received_events_url":"https://api.github.com/users/mprobst/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-04T12:19:52Z","updated_at":"2015-11-04T15:23:24Z","closed_at":"2015-11-04T15:23:23Z","body":"It'd be nice to allow starting an initial run for a gulp watch, e.g.:\r\n```js\r\ngulp.task('watch', function() {\r\n  return gulp.watch(['src/**/*.js', 'test/**/*.js'], {initialRun: true}, ['test.unit']);\r\n});\r\n```\r\n\r\nCurrently the only way to achieve this is to manually trigger a `gulp.start`, which is undocumented and thus a bit ugly."},"comment":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/comments/153761162","html_url":"https://github.com/gulpjs/gulp/issues/1372#issuecomment-153761162","issue_url":"https://api.github.com/repos/gulpjs/gulp/issues/1372","id":153761162,"user":{"login":"phated","id":992373,"avatar_url":"https://avatars.githubusercontent.com/u/992373?v=3","gravatar_id":"","url":"https://api.github.com/users/phated","html_url":"https://github.com/phated","followers_url":"https://api.github.com/users/phated/followers","following_url":"https://api.github.com/users/phated/following{/other_user}","gists_url":"https://api.github.com/users/phated/gists{/gist_id}","starred_url":"https://api.github.com/users/phated/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phated/subscriptions","organizations_url":"https://api.github.com/users/phated/orgs","repos_url":"https://api.github.com/users/phated/repos","events_url":"https://api.github.com/users/phated/events{/privacy}","received_events_url":"https://api.github.com/users/phated/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T15:23:23Z","updated_at":"2015-11-04T15:23:23Z","body":"3.x is feature locked and the file watcher is completely different in 4.0 where we just wrap chokidar. We don't want to add extra functionality on top of chokidar. "}}