{"action":"created","comment":{"url":"https://api.github.com/repos/aranja/gulp-base/pulls/comments/22895034","id":22895034,"diff_hunk":"@@ -1,13 +1,30 @@\n module.exports = function(gulp) {\n-  gulp.task('watch', function() {\n-    gulp.watch(gulp.config.source + '/styles/**/*.less', ['less']);\n-    gulp.watch(gulp.config.source + '/js/**/*.js', ['browserify']);\n-    gulp.watch([\n-        gulp.config.source + '/*.html',\n-        gulp.config.source + '/img/**/*.ico',\n-        gulp.config.source + '/fonts/**/*',\n-        gulp.config.source + '/videos/**/*'\n-    ], ['copy']);\n-    gulp.watch(gulp.config.source + '/views/**/*.jade', ['jade']);\n+  var watch = require('gulp-watch');\n+\n+  gulp.task('watch', ['build'], function() {\n+    watch(gulp.config.source + '/styles/**/*.less', function() {\n+      gulp.start('less');\n+    });\n+\n+    watch(gulp.config.source + '/js/**/*.js', function() {\n+      gulp.start('browserify');\n+    });\n+\n+    watch([\n+      gulp.config.source + '/*.html',\n+      gulp.config.source + '/img/**/*.{png,gif,jpg,jpeg,svg}',\n+      gulp.config.source + '/fonts/**/*',\n+      gulp.config.source + '/videos/**/*'\n+    ], function() {\n+      gulp.start('copy');\n+    });\n+\n+    watch(gulp.config.source + '/views/**/*.jade', function() {\n+      gulp.start('jade');\n+    });\n+\n+    watch(gulp.config.source + '/img/**/*.{png,gif,jpg,jpeg,svg}', function() {\n+      gulp.start('images');\n+    });","path":"gulp/tasks/watch.js","position":38,"original_position":38,"commit_id":"775c412f5410dd39aedd9602c4ae5b8620bd1b02","original_commit_id":"775c412f5410dd39aedd9602c4ae5b8620bd1b02","user":{"login":"eirikurn","id":115094,"avatar_url":"https://avatars.githubusercontent.com/u/115094?v=3","gravatar_id":"","url":"https://api.github.com/users/eirikurn","html_url":"https://github.com/eirikurn","followers_url":"https://api.github.com/users/eirikurn/followers","following_url":"https://api.github.com/users/eirikurn/following{/other_user}","gists_url":"https://api.github.com/users/eirikurn/gists{/gist_id}","starred_url":"https://api.github.com/users/eirikurn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eirikurn/subscriptions","organizations_url":"https://api.github.com/users/eirikurn/orgs","repos_url":"https://api.github.com/users/eirikurn/repos","events_url":"https://api.github.com/users/eirikurn/events{/privacy}","received_events_url":"https://api.github.com/users/eirikurn/received_events","type":"User","site_admin":false},"body":"Why use `gulp-watch` instead of `gulp.watch`? Seems like we're not even using it's signature streaming feature.","created_at":"2015-01-13T21:11:51Z","updated_at":"2015-01-13T21:11:51Z","html_url":"https://github.com/aranja/gulp-base/pull/13#discussion_r22895034","pull_request_url":"https://api.github.com/repos/aranja/gulp-base/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/aranja/gulp-base/pulls/comments/22895034"},"html":{"href":"https://github.com/aranja/gulp-base/pull/13#discussion_r22895034"},"pull_request":{"href":"https://api.github.com/repos/aranja/gulp-base/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/aranja/gulp-base/pulls/13","id":27213701,"html_url":"https://github.com/aranja/gulp-base/pull/13","diff_url":"https://github.com/aranja/gulp-base/pull/13.diff","patch_url":"https://github.com/aranja/gulp-base/pull/13.patch","issue_url":"https://api.github.com/repos/aranja/gulp-base/issues/13","number":13,"state":"open","locked":false,"title":"A new gulp base for a new year","user":{"login":"davidblurton","id":1696979,"avatar_url":"https://avatars.githubusercontent.com/u/1696979?v=3","gravatar_id":"","url":"https://api.github.com/users/davidblurton","html_url":"https://github.com/davidblurton","followers_url":"https://api.github.com/users/davidblurton/followers","following_url":"https://api.github.com/users/davidblurton/following{/other_user}","gists_url":"https://api.github.com/users/davidblurton/gists{/gist_id}","starred_url":"https://api.github.com/users/davidblurton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidblurton/subscriptions","organizations_url":"https://api.github.com/users/davidblurton/orgs","repos_url":"https://api.github.com/users/davidblurton/repos","events_url":"https://api.github.com/users/davidblurton/events{/privacy}","received_events_url":"https://api.github.com/users/davidblurton/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-12T18:08:40Z","updated_at":"2015-01-13T21:11:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"788f4241d37134dbcebac734a4c613382eceae60","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aranja/gulp-base/pulls/13/commits","review_comments_url":"https://api.github.com/repos/aranja/gulp-base/pulls/13/comments","review_comment_url":"https://api.github.com/repos/aranja/gulp-base/pulls/comments/{number}","comments_url":"https://api.github.com/repos/aranja/gulp-base/issues/13/comments","statuses_url":"https://api.github.com/repos/aranja/gulp-base/statuses/775c412f5410dd39aedd9602c4ae5b8620bd1b02","head":{"label":"aranja:v2015","ref":"v2015","sha":"775c412f5410dd39aedd9602c4ae5b8620bd1b02","user":{"login":"aranja","id":526561,"avatar_url":"https://avatars.githubusercontent.com/u/526561?v=3","gravatar_id":"","url":"https://api.github.com/users/aranja","html_url":"https://github.com/aranja","followers_url":"https://api.github.com/users/aranja/followers","following_url":"https://api.github.com/users/aranja/following{/other_user}","gists_url":"https://api.github.com/users/aranja/gists{/gist_id}","starred_url":"https://api.github.com/users/aranja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aranja/subscriptions","organizations_url":"https://api.github.com/users/aranja/orgs","repos_url":"https://api.github.com/users/aranja/repos","events_url":"https://api.github.com/users/aranja/events{/privacy}","received_events_url":"https://api.github.com/users/aranja/received_events","type":"Organization","site_admin":false},"repo":{"id":20764986,"name":"gulp-base","full_name":"aranja/gulp-base","owner":{"login":"aranja","id":526561,"avatar_url":"https://avatars.githubusercontent.com/u/526561?v=3","gravatar_id":"","url":"https://api.github.com/users/aranja","html_url":"https://github.com/aranja","followers_url":"https://api.github.com/users/aranja/followers","following_url":"https://api.github.com/users/aranja/following{/other_user}","gists_url":"https://api.github.com/users/aranja/gists{/gist_id}","starred_url":"https://api.github.com/users/aranja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aranja/subscriptions","organizations_url":"https://api.github.com/users/aranja/orgs","repos_url":"https://api.github.com/users/aranja/repos","events_url":"https://api.github.com/users/aranja/events{/privacy}","received_events_url":"https://api.github.com/users/aranja/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aranja/gulp-base","description":"A base for projects using Gulp","fork":true,"url":"https://api.github.com/repos/aranja/gulp-base","forks_url":"https://api.github.com/repos/aranja/gulp-base/forks","keys_url":"https://api.github.com/repos/aranja/gulp-base/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aranja/gulp-base/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aranja/gulp-base/teams","hooks_url":"https://api.github.com/repos/aranja/gulp-base/hooks","issue_events_url":"https://api.github.com/repos/aranja/gulp-base/issues/events{/number}","events_url":"https://api.github.com/repos/aranja/gulp-base/events","assignees_url":"https://api.github.com/repos/aranja/gulp-base/assignees{/user}","branches_url":"https://api.github.com/repos/aranja/gulp-base/branches{/branch}","tags_url":"https://api.github.com/repos/aranja/gulp-base/tags","blobs_url":"https://api.github.com/repos/aranja/gulp-base/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aranja/gulp-base/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aranja/gulp-base/git/refs{/sha}","trees_url":"https://api.github.com/repos/aranja/gulp-base/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aranja/gulp-base/statuses/{sha}","languages_url":"https://api.github.com/repos/aranja/gulp-base/languages","stargazers_url":"https://api.github.com/repos/aranja/gulp-base/stargazers","contributors_url":"https://api.github.com/repos/aranja/gulp-base/contributors","subscribers_url":"https://api.github.com/repos/aranja/gulp-base/subscribers","subscription_url":"https://api.github.com/repos/aranja/gulp-base/subscription","commits_url":"https://api.github.com/repos/aranja/gulp-base/commits{/sha}","git_commits_url":"https://api.github.com/repos/aranja/gulp-base/git/commits{/sha}","comments_url":"https://api.github.com/repos/aranja/gulp-base/comments{/number}","issue_comment_url":"https://api.github.com/repos/aranja/gulp-base/issues/comments/{number}","contents_url":"https://api.github.com/repos/aranja/gulp-base/contents/{+path}","compare_url":"https://api.github.com/repos/aranja/gulp-base/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aranja/gulp-base/merges","archive_url":"https://api.github.com/repos/aranja/gulp-base/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aranja/gulp-base/downloads","issues_url":"https://api.github.com/repos/aranja/gulp-base/issues{/number}","pulls_url":"https://api.github.com/repos/aranja/gulp-base/pulls{/number}","milestones_url":"https://api.github.com/repos/aranja/gulp-base/milestones{/number}","notifications_url":"https://api.github.com/repos/aranja/gulp-base/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aranja/gulp-base/labels{/name}","releases_url":"https://api.github.com/repos/aranja/gulp-base/releases{/id}","created_at":"2014-06-12T11:25:06Z","updated_at":"2015-01-07T17:29:36Z","pushed_at":"2015-01-11T23:37:24Z","git_url":"git://github.com/aranja/gulp-base.git","ssh_url":"git@github.com:aranja/gulp-base.git","clone_url":"https://github.com/aranja/gulp-base.git","svn_url":"https://github.com/aranja/gulp-base","homepage":null,"size":177,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":2,"default_branch":"master"}},"base":{"label":"aranja:master","ref":"master","sha":"96a491ed6a65b5df194c671d51e8c99fad11d872","user":{"login":"aranja","id":526561,"avatar_url":"https://avatars.githubusercontent.com/u/526561?v=3","gravatar_id":"","url":"https://api.github.com/users/aranja","html_url":"https://github.com/aranja","followers_url":"https://api.github.com/users/aranja/followers","following_url":"https://api.github.com/users/aranja/following{/other_user}","gists_url":"https://api.github.com/users/aranja/gists{/gist_id}","starred_url":"https://api.github.com/users/aranja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aranja/subscriptions","organizations_url":"https://api.github.com/users/aranja/orgs","repos_url":"https://api.github.com/users/aranja/repos","events_url":"https://api.github.com/users/aranja/events{/privacy}","received_events_url":"https://api.github.com/users/aranja/received_events","type":"Organization","site_admin":false},"repo":{"id":20764986,"name":"gulp-base","full_name":"aranja/gulp-base","owner":{"login":"aranja","id":526561,"avatar_url":"https://avatars.githubusercontent.com/u/526561?v=3","gravatar_id":"","url":"https://api.github.com/users/aranja","html_url":"https://github.com/aranja","followers_url":"https://api.github.com/users/aranja/followers","following_url":"https://api.github.com/users/aranja/following{/other_user}","gists_url":"https://api.github.com/users/aranja/gists{/gist_id}","starred_url":"https://api.github.com/users/aranja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aranja/subscriptions","organizations_url":"https://api.github.com/users/aranja/orgs","repos_url":"https://api.github.com/users/aranja/repos","events_url":"https://api.github.com/users/aranja/events{/privacy}","received_events_url":"https://api.github.com/users/aranja/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aranja/gulp-base","description":"A base for projects using Gulp","fork":true,"url":"https://api.github.com/repos/aranja/gulp-base","forks_url":"https://api.github.com/repos/aranja/gulp-base/forks","keys_url":"https://api.github.com/repos/aranja/gulp-base/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aranja/gulp-base/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aranja/gulp-base/teams","hooks_url":"https://api.github.com/repos/aranja/gulp-base/hooks","issue_events_url":"https://api.github.com/repos/aranja/gulp-base/issues/events{/number}","events_url":"https://api.github.com/repos/aranja/gulp-base/events","assignees_url":"https://api.github.com/repos/aranja/gulp-base/assignees{/user}","branches_url":"https://api.github.com/repos/aranja/gulp-base/branches{/branch}","tags_url":"https://api.github.com/repos/aranja/gulp-base/tags","blobs_url":"https://api.github.com/repos/aranja/gulp-base/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aranja/gulp-base/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aranja/gulp-base/git/refs{/sha}","trees_url":"https://api.github.com/repos/aranja/gulp-base/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aranja/gulp-base/statuses/{sha}","languages_url":"https://api.github.com/repos/aranja/gulp-base/languages","stargazers_url":"https://api.github.com/repos/aranja/gulp-base/stargazers","contributors_url":"https://api.github.com/repos/aranja/gulp-base/contributors","subscribers_url":"https://api.github.com/repos/aranja/gulp-base/subscribers","subscription_url":"https://api.github.com/repos/aranja/gulp-base/subscription","commits_url":"https://api.github.com/repos/aranja/gulp-base/commits{/sha}","git_commits_url":"https://api.github.com/repos/aranja/gulp-base/git/commits{/sha}","comments_url":"https://api.github.com/repos/aranja/gulp-base/comments{/number}","issue_comment_url":"https://api.github.com/repos/aranja/gulp-base/issues/comments/{number}","contents_url":"https://api.github.com/repos/aranja/gulp-base/contents/{+path}","compare_url":"https://api.github.com/repos/aranja/gulp-base/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aranja/gulp-base/merges","archive_url":"https://api.github.com/repos/aranja/gulp-base/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aranja/gulp-base/downloads","issues_url":"https://api.github.com/repos/aranja/gulp-base/issues{/number}","pulls_url":"https://api.github.com/repos/aranja/gulp-base/pulls{/number}","milestones_url":"https://api.github.com/repos/aranja/gulp-base/milestones{/number}","notifications_url":"https://api.github.com/repos/aranja/gulp-base/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aranja/gulp-base/labels{/name}","releases_url":"https://api.github.com/repos/aranja/gulp-base/releases{/id}","created_at":"2014-06-12T11:25:06Z","updated_at":"2015-01-07T17:29:36Z","pushed_at":"2015-01-11T23:37:24Z","git_url":"git://github.com/aranja/gulp-base.git","ssh_url":"git@github.com:aranja/gulp-base.git","clone_url":"https://github.com/aranja/gulp-base.git","svn_url":"https://github.com/aranja/gulp-base","homepage":null,"size":177,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aranja/gulp-base/pulls/13"},"html":{"href":"https://github.com/aranja/gulp-base/pull/13"},"issue":{"href":"https://api.github.com/repos/aranja/gulp-base/issues/13"},"comments":{"href":"https://api.github.com/repos/aranja/gulp-base/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/aranja/gulp-base/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/aranja/gulp-base/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/aranja/gulp-base/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/aranja/gulp-base/statuses/775c412f5410dd39aedd9602c4ae5b8620bd1b02"}}}}