{"action":"created","issue":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/864","labels_url":"https://api.github.com/repos/gulpjs/gulp/issues/864/labels{/name}","comments_url":"https://api.github.com/repos/gulpjs/gulp/issues/864/comments","events_url":"https://api.github.com/repos/gulpjs/gulp/issues/864/events","html_url":"https://github.com/gulpjs/gulp/issues/864","id":54004209,"number":864,"title":"Dependent tasks must be defined before they are used","user":{"login":"johnpapa","id":1202528,"avatar_url":"https://avatars.githubusercontent.com/u/1202528?v=3","gravatar_id":"","url":"https://api.github.com/users/johnpapa","html_url":"https://github.com/johnpapa","followers_url":"https://api.github.com/users/johnpapa/followers","following_url":"https://api.github.com/users/johnpapa/following{/other_user}","gists_url":"https://api.github.com/users/johnpapa/gists{/gist_id}","starred_url":"https://api.github.com/users/johnpapa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnpapa/subscriptions","organizations_url":"https://api.github.com/users/johnpapa/orgs","repos_url":"https://api.github.com/users/johnpapa/repos","events_url":"https://api.github.com/users/johnpapa/events{/privacy}","received_events_url":"https://api.github.com/users/johnpapa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-11T20:45:04Z","updated_at":"2015-01-11T20:51:51Z","closed_at":null,"body":"This was not a requirement in gulp 3 but appears to be one in gulp 4. Is this intended?\r\n\r\nI prefer not having a sequencing restriction as often I organize my tasks however it appears most readable, not by who depends on who.\r\n\r\nFor example, the following will not work. \r\n\r\n```javascript\r\ngulp.task('test', gulp.parallel('vet', function(done) {\r\n  console.log('running tests');\r\n  done();\r\n}));\r\n\r\ngulp.task('vet', gulp.parallel(function(done) {\r\n  console.log('running code analysis');\r\n  done();\r\n}));\r\n```\r\n\r\nHowever, this will work since `vet` now comes before `test`.\r\n\r\n```javascript\r\ngulp.task('vet', gulp.parallel(function(done) {\r\n  console.log('running code analysis');\r\n  done();\r\n}));\r\n\r\ngulp.task('test', gulp.parallel('vet', function(done) {\r\n  console.log('running tests');\r\n  done();\r\n}));\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/comments/69510883","html_url":"https://github.com/gulpjs/gulp/issues/864#issuecomment-69510883","issue_url":"https://api.github.com/repos/gulpjs/gulp/issues/864","id":69510883,"user":{"login":"heikki","id":82735,"avatar_url":"https://avatars.githubusercontent.com/u/82735?v=3","gravatar_id":"","url":"https://api.github.com/users/heikki","html_url":"https://github.com/heikki","followers_url":"https://api.github.com/users/heikki/followers","following_url":"https://api.github.com/users/heikki/following{/other_user}","gists_url":"https://api.github.com/users/heikki/gists{/gist_id}","starred_url":"https://api.github.com/users/heikki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heikki/subscriptions","organizations_url":"https://api.github.com/users/heikki/orgs","repos_url":"https://api.github.com/users/heikki/repos","events_url":"https://api.github.com/users/heikki/events{/privacy}","received_events_url":"https://api.github.com/users/heikki/received_events","type":"User","site_admin":false},"created_at":"2015-01-11T20:51:51Z","updated_at":"2015-01-11T20:51:51Z","body":"Duplicate of #802 "}}