{"action":"created","issue":{"url":"https://api.github.com/repos/cake-build/cake/issues/220","labels_url":"https://api.github.com/repos/cake-build/cake/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/cake-build/cake/issues/220/comments","events_url":"https://api.github.com/repos/cake-build/cake/issues/220/events","html_url":"https://github.com/cake-build/cake/issues/220","id":64582685,"number":220,"title":"Gulp-esque streams and operation piping.","user":{"login":"RichiCoder1","id":2391878,"avatar_url":"https://avatars.githubusercontent.com/u/2391878?v=3","gravatar_id":"","url":"https://api.github.com/users/RichiCoder1","html_url":"https://github.com/RichiCoder1","followers_url":"https://api.github.com/users/RichiCoder1/followers","following_url":"https://api.github.com/users/RichiCoder1/following{/other_user}","gists_url":"https://api.github.com/users/RichiCoder1/gists{/gist_id}","starred_url":"https://api.github.com/users/RichiCoder1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichiCoder1/subscriptions","organizations_url":"https://api.github.com/users/RichiCoder1/orgs","repos_url":"https://api.github.com/users/RichiCoder1/repos","events_url":"https://api.github.com/users/RichiCoder1/events{/privacy}","received_events_url":"https://api.github.com/users/RichiCoder1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-26T17:00:06Z","updated_at":"2015-03-26T20:39:15Z","closed_at":null,"body":"See: https://github.com/gulpjs/gulp/blob/master/docs/API.md#gulpsrcglobs-options.\r\nThis:\r\n```javascript\r\ngulp.src('client/templates/*.jade')\r\n  .pipe(jade())\r\n  .pipe(minify())\r\n  .pipe(gulp.dest('build/minified_templates'));\r\n```\r\n```csharp\r\nTask(\"A\")\r\n  .Does(() =>\r\n{\r\n    Source(\"client/templates/*.jade\")\r\n        .Pipe(Jade)\r\n        .Pipe(Minify)\r\n        .Destination('build/minified_templates');\r\n});\r\n```\r\nWith this new Alias:\r\n```csharp\r\npublic static ICakePipe Source(this ICakeEnviroment enviroment, string globOrDirectoryName); \r\n```\r\n\r\nStill chewing on how ICakePipe would function, how files are passed to stream Aliases, and other such things. Would follow the general idea that the functions would either be called for each file in the globbed file collection, or would return a func that accepts a file stream. The latter would change `.Pipe(Jade)` to `.Pipe(Jade())`, and would allow options to be passed to aliases.\r\n\r\nComments, opinions, etc?"},"comment":{"url":"https://api.github.com/repos/cake-build/cake/issues/comments/86706183","html_url":"https://github.com/cake-build/cake/issues/220#issuecomment-86706183","issue_url":"https://api.github.com/repos/cake-build/cake/issues/220","id":86706183,"user":{"login":"patriksvensson","id":357872,"avatar_url":"https://avatars.githubusercontent.com/u/357872?v=3","gravatar_id":"","url":"https://api.github.com/users/patriksvensson","html_url":"https://github.com/patriksvensson","followers_url":"https://api.github.com/users/patriksvensson/followers","following_url":"https://api.github.com/users/patriksvensson/following{/other_user}","gists_url":"https://api.github.com/users/patriksvensson/gists{/gist_id}","starred_url":"https://api.github.com/users/patriksvensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patriksvensson/subscriptions","organizations_url":"https://api.github.com/users/patriksvensson/orgs","repos_url":"https://api.github.com/users/patriksvensson/repos","events_url":"https://api.github.com/users/patriksvensson/events{/privacy}","received_events_url":"https://api.github.com/users/patriksvensson/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T20:39:15Z","updated_at":"2015-03-26T20:39:15Z","body":"I'm not familiar with Gulp but will read the link you provided and digest it :smile:"}}