gulp-filter
gulp-filter copied to clipboard
Gulp filter filters everything
Version 5.0.0 works ok, version 5.0.1 broken. Looks like a change was made between 5.0.0 and 5.0.1 and now filter just skips everything. Here's a simplified code snippet which:
function(svn_revision){
var xmlFilter = filter("../**/*.xml", {restore: true});
return gulp.src([
"../Setup/Installed/Data/Http/Templates/**/*",
], { base : '../' })
.pipe(xmlFilter)
.pipe(replace('@PRODUCT_SVN_BUILD@', svn_revision))
.pipe(xmlFilter.restore)
.pipe(gulp.dest("../BinRepo/Templates"));
},
Expected behavior: All xml files should have @PRODUCT_SVN_BUILD@ replaced. Actual behavior: Looks like they're just written to dest folder.
UPD: Looks like 5.0.0 doesn't work on Linux
IssueHunt Summary
Sponsors (Total: $40.00)
-
issuehunt ($40.00)
Become a sponsor now!
Or submit a pull request to get the deposits!
Tips
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on IssueHunt to raise funds.
+1 same here, downgrading
4 is also broken here, sticking with ~3.0
Version 5.1.0 - broken. Filters out everything.
@issuehunt has funded $40.00 to this issue.
- Submit pull request via IssueHunt to receive this reward.
- Want to contribute? Chip in to this issue via IssueHunt.
- Checkout the IssueHunt Issue Explorer to see more funded issues.
- Need help from developers? Add your repository on IssueHunt to raise funds.