{"action":"created","issue":{"url":"https://api.github.com/repos/robrich/gulp-if/issues/43","labels_url":"https://api.github.com/repos/robrich/gulp-if/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/robrich/gulp-if/issues/43/comments","events_url":"https://api.github.com/repos/robrich/gulp-if/issues/43/events","html_url":"https://github.com/robrich/gulp-if/issues/43","id":47936636,"number":43,"title":"Gulp-If removes files from stream","user":{"login":"chbloemer","id":873040,"avatar_url":"https://avatars.githubusercontent.com/u/873040?v=3","gravatar_id":"","url":"https://api.github.com/users/chbloemer","html_url":"https://github.com/chbloemer","followers_url":"https://api.github.com/users/chbloemer/followers","following_url":"https://api.github.com/users/chbloemer/following{/other_user}","gists_url":"https://api.github.com/users/chbloemer/gists{/gist_id}","starred_url":"https://api.github.com/users/chbloemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chbloemer/subscriptions","organizations_url":"https://api.github.com/users/chbloemer/orgs","repos_url":"https://api.github.com/users/chbloemer/repos","events_url":"https://api.github.com/users/chbloemer/events{/privacy}","received_events_url":"https://api.github.com/users/chbloemer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2014-11-06T08:52:03Z","updated_at":"2015-07-07T07:58:38Z","closed_at":null,"body":"Hello,\r\nI have a strange problem with this code:\r\n```javascript\r\ngulp.task(\"copyScriptsBuggy\", function () {\r\n        return gulp.src(\"./source/scripts/**/*.{js,coffee}\",{base:\"./source/scripts\"})\r\n        .pipe(gulpif(/[.]coffee$/, coffee(), gutil.noop()))\r\n        .pipe(gulp.dest(\"./build/scripts\"));\r\n});\r\n```\r\nI process about 200 files and about 10 files are missing in the destination folder. And they are not coffeescript files.\r\nYou can switch \"coffee()\" with \"gutil.noop()\" and there are still files missing, so its not a problem of coffeescript processing. As soon as \"gulp-if\" is used in the pipe, some files are not transfered to the destination folder.\r\n\r\nMy workaround was to use the \"event-stream\" modul to build two separate streams - one for coffee and one for javascript - and merge them. Now I have all files in my destination folder.\r\nI think this is a little bit more complicated and I would prefer \"gulp-if\", if it would be working as expected.\r\n```javascript\r\nvar es = require('event-stream'),\r\ngulp.task(\"copyScriptsWorking\", function () {\r\n    return es.merge(\r\n                gulp.src(\"./source/scripts/**/*.js\",{base:\"./source/scripts\"}),\r\n                gulp.src(\"./source/scripts/**/*.coffee\",{base:\"./source/scripts\"}).pipe(coffee())\r\n            )\r\n            .pipe(gulp.dest(\"./build/scripts\"));\r\n});\r\n```\r\nI hope somebody can help with this.\r\n\r\nBest regards\r\nChristoph\r\n\r\nVersions:\r\nGulp 3.8.9\r\nGulp-If 1.2.5\r\nGulp-Util 3.0.1\r\nNode 0.10.33\r\nNPM 2.1.6\r\n"},"comment":{"url":"https://api.github.com/repos/robrich/gulp-if/issues/comments/119110217","html_url":"https://github.com/robrich/gulp-if/issues/43#issuecomment-119110217","issue_url":"https://api.github.com/repos/robrich/gulp-if/issues/43","id":119110217,"user":{"login":"nevech","id":5401405,"avatar_url":"https://avatars.githubusercontent.com/u/5401405?v=3","gravatar_id":"","url":"https://api.github.com/users/nevech","html_url":"https://github.com/nevech","followers_url":"https://api.github.com/users/nevech/followers","following_url":"https://api.github.com/users/nevech/following{/other_user}","gists_url":"https://api.github.com/users/nevech/gists{/gist_id}","starred_url":"https://api.github.com/users/nevech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nevech/subscriptions","organizations_url":"https://api.github.com/users/nevech/orgs","repos_url":"https://api.github.com/users/nevech/repos","events_url":"https://api.github.com/users/nevech/events{/privacy}","received_events_url":"https://api.github.com/users/nevech/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T07:58:38Z","updated_at":"2015-07-07T07:58:38Z","body":"Yes, see: https://gist.github.com/nevech/8ff0b5630169128be078"}}