{"action":"created","issue":{"url":"https://api.github.com/repos/bucaran/fly/issues/110","labels_url":"https://api.github.com/repos/bucaran/fly/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/bucaran/fly/issues/110/comments","events_url":"https://api.github.com/repos/bucaran/fly/issues/110/events","html_url":"https://github.com/bucaran/fly/issues/110","id":110666648,"number":110,"title":"Fly cut chain after `Fly.prototype.target`","user":{"login":"petamoriken","id":2622837,"avatar_url":"https://avatars.githubusercontent.com/u/2622837?v=3","gravatar_id":"","url":"https://api.github.com/users/petamoriken","html_url":"https://github.com/petamoriken","followers_url":"https://api.github.com/users/petamoriken/followers","following_url":"https://api.github.com/users/petamoriken/following{/other_user}","gists_url":"https://api.github.com/users/petamoriken/gists{/gist_id}","starred_url":"https://api.github.com/users/petamoriken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petamoriken/subscriptions","organizations_url":"https://api.github.com/users/petamoriken/orgs","repos_url":"https://api.github.com/users/petamoriken/repos","events_url":"https://api.github.com/users/petamoriken/events{/privacy}","received_events_url":"https://api.github.com/users/petamoriken/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-09T14:10:12Z","updated_at":"2015-10-09T15:12:04Z","closed_at":null,"body":"enable to connect pipe after `gulp.dest` in Gulp:\r\n\r\n\tgulp.task(\"default\", function() {\r\n\t\tgulp.src(\"test.js\")\r\n\t\t\t...\r\n\t\t\t.pipe(rename(\"build.js\"))\r\n\t\t\t.pipe(gulp.dest(\"dest\"))\r\n\t\t\t...\r\n\t\t\t.pipe(uglify())\r\n\t\t\t.pipe(rename(\"build.min.js\"))\r\n\t\t\t.pipe(gulp.dest(\"dest\"));\r\n\t});\r\n\r\nSo I want to write a code like above in Fly:\r\n\r\n\texport default funciton* () {\r\n\t\tyield this.source(\"test.js\")\r\n\t\t\t...\r\n\t\t\t.rename(\"build.js\")\r\n\t\t\t.target(\"dest\")\r\n\t\t\t...\r\n\t\t\t.uglify()\r\n\t\t\t.rename(\"build.min.js\")\r\n\t\t\ttarget(\"dest\");\r\n\t}\r\n\r\nBut Fly cut chain after `Fly.prototype.target`. Please fix it."},"comment":{"url":"https://api.github.com/repos/bucaran/fly/issues/comments/146899206","html_url":"https://github.com/bucaran/fly/issues/110#issuecomment-146899206","issue_url":"https://api.github.com/repos/bucaran/fly/issues/110","id":146899206,"user":{"login":"petamoriken","id":2622837,"avatar_url":"https://avatars.githubusercontent.com/u/2622837?v=3","gravatar_id":"","url":"https://api.github.com/users/petamoriken","html_url":"https://github.com/petamoriken","followers_url":"https://api.github.com/users/petamoriken/followers","following_url":"https://api.github.com/users/petamoriken/following{/other_user}","gists_url":"https://api.github.com/users/petamoriken/gists{/gist_id}","starred_url":"https://api.github.com/users/petamoriken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petamoriken/subscriptions","organizations_url":"https://api.github.com/users/petamoriken/orgs","repos_url":"https://api.github.com/users/petamoriken/repos","events_url":"https://api.github.com/users/petamoriken/events{/privacy}","received_events_url":"https://api.github.com/users/petamoriken/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T15:12:03Z","updated_at":"2015-10-09T15:12:03Z","body":"Or should I write a code as below?\r\n\r\n\texport default funciton* () {\r\n\t\tyield this.start([\"build\", \"minify\"])\r\n\t}\r\n\r\n\texport funciton* build() {\r\n\t\tyield this.source(\"test.js\")\r\n\t\t\t...\r\n\t\t\t.rename(\"build.js\")\r\n\t\t\t.target(\"dest\")\r\n\t}\r\n\r\n\texport funciton* minify() {\r\n\t\tyield this.source(\"dest/build.js\")\r\n\t\t\t...\r\n\t\t\t.uglify()\r\n\t\t\t.rename(\"build.min.js\")\r\n\t\t\ttarget(\"dest\")\r\n\t}"}}