Giter Club home page Giter Club logo

Comments (12)

yocontra avatar yocontra commented on May 30, 2024

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.

hemanth avatar hemanth commented on May 30, 2024

@contra Neat!

But, would it not be neat for gulp if it integrate glob negation ?

from gulp.

yocontra avatar yocontra commented on May 30, 2024

@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.

robrich avatar robrich commented on May 30, 2024

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.

yocontra avatar yocontra commented on May 30, 2024

@robrich Making code and... not open sourcing it immediately? ๐Ÿ˜–

from gulp.

hemanth avatar hemanth commented on May 30, 2024

@robrich Seems like @robrich was waiting to win the $5 bounty ๐ŸŒต ๐Ÿ‘

from gulp.

robrich avatar robrich commented on May 30, 2024

Yeah, fail on me. I wasn't sure if it was valuable, so I didn't bother. Seems it now is. :D

from gulp.

robrich avatar robrich commented on May 30, 2024

Check out https://npmjs.org/package/gulp-ignore

from gulp.

yocontra avatar yocontra commented on May 30, 2024

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.

hemanth avatar hemanth commented on May 30, 2024

@contra @robrich Sweet! :)

from gulp.

hparra avatar hparra commented on May 30, 2024

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.

yocontra avatar yocontra commented on May 30, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.