Comments (12)
This sounds like a good user-land module!
var es = require('event-stream');
module.exports = function(opt){
return es.map(function(file, cb){
if (file.stat && file.stat.isDirectory() && opt.isFile) return cb(); // filter it out
cb(null, file); // pass it through
});
};
A good filter module with support for globs would actually be a good replacement for having filtering and glob negation in core #6 #7
from gulp.
@contra Neat!
But, would it not be neat for gulp
if it integrate glob negation ?
from gulp.
@hemanth - Yeah... glob negation will be in core. All other filters will be user-land. One main gulp-filter module would be really badass. I'll put up a $5 bounty to whoever wants to make it.
from gulp.
I've got a module that does this now. I'll publish shortly.
Rob
On Dec 2, 2013 8:53 PM, "Eric Schoffstall" [email protected] wrote:
@hemanth https://github.com/hemanth - Glob negation will be in core.
All other filters will be user-land. One main gulp-filter module would be
really badass. I'll put up a $5 bounty to whoever wants to make itโ
Reply to this email directly or view it on GitHubhttps://github.com//issues/35#issuecomment-29681701
.
from gulp.
@robrich Making code and... not open sourcing it immediately? ๐
from gulp.
@robrich Seems like @robrich was waiting to win the $5 bounty ๐ต ๐
from gulp.
Yeah, fail on me. I wasn't sure if it was valuable, so I didn't bother. Seems it now is. :D
from gulp.
Check out https://npmjs.org/package/gulp-ignore
from gulp.
Nice it supports globs! Closing this as it seems that your module solves the issue. Glob negation will be in core soon folks
from gulp.
from gulp.
Yes, glob negation should be in core. I keep hitting Error: EMFILE, too many open files
. I can't use @robrich's gulp-ignore because it just won't get that far.
from gulp.
@hparra - Working on it. Ironing out how it should behave is taking longer than expected (lots of edge cases when dealing with globs)
from gulp.
Related Issues (20)
- TypeScript Module `gulpfile.mts` Not Supported HOT 2
- `npm audit` vulnerability for `glob-parent` package
- Watchers do not detect specific files
- Curly braces in glob without commas do not work HOT 2
- unlink not work HOT 2
- Dependency unset-value has a Prototype Pollution vulnerability
- Upgrade Gupl-cli version to 2.3.0 HOT 1
- gulp.src *.123456 vs *.1234567
- error TS2305: Module '"gulp"' has no exported member 'parallel' HOT 2
- Atualizacao Gulp Util
- gulp does not work if base path has brackets [ ] HOT 1
- Bump glob-watcher to 6.0.0
- Update glob-version to lates major version HOT 1
- Error: Cannot find module 'gulp-cli' HOT 2
- Bun support HOT 2
- Gulp 4: How do I prevent from duplicated dependent task execution? #1392 HOT 1
- Request to provide a more beginner-friendly tutorial on gulp website. HOT 1
- CVE-2020-2869
- Audit Vulnerability , security Report for "glob-parent" Package in `gulp` package
- ่ฟไธช้กน็ฎ่ฟ็ปดๆคๅ
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp.