Last 12 weeks · 0 commits
4 of 6 standards met
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 sindresorhus has been rewarded. Backers (Total: $40.00) issuehunt ($40.00) Submitted pull Requests #25 Add function and component Tips Checkout the Issuehunt explorer to discover more funded issues. Need some help from other developers? Add your repositories on IssueHunt to raise funds.
Repository: sindresorhus/gulp-filter. Description: Filter files in a `vinyl` stream Stars: 313, Forks: 34. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Topics: filter, gulp-plugin, javascript, nodejs. Latest release: v9.0.1 (2y ago). Open PRs: 0, open issues: 0. Last activity: 1y ago. Community health: 85%. Top contributors: sindresorhus, nfroidure, cb1kenobi, mariocasciaro, gucong3000, duncanbeevers, pioug, leocaseiro, hoho, mjeanroy and others.
JavaScript
I need to copy some files then delete a sub-section of those files. Unfortunately when I use gulp-filter I'm not getting the desired results. I've reproduced the issue below. (except I'm copying the files to a second location) Here are some things I noticed. 1. in the case above the first folder is populated (with 4 results) but not the second. 2. if I rearrange the pipes like so: Then both folders are populated with results (2 results). 3. if I change the filter to something else like: Then the first folder has 4 results and the second has 1 result. (expected.) The desired behaviour in this case puts 4 files in the first folder and 2 in the second. IssueHunt Summary richienb has been rewarded. Backers (Total: $20.00) issuehunt ($20.00) Submitted pull Requests #17 Move to GitHub Actions Tips Checkout the Issuehunt explorer to discover more funded issues. Need some help from other developers? Add your repositories on IssueHunt to raise funds.