Coder Social home page Coder Social logo

node-fileset's People

Contributors

evocateur avatar filirom1 avatar hemanth avatar isaacs avatar jj avatar mklabs avatar pierrec avatar popomore avatar shama avatar sindresorhus avatar yurenju avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

node-fileset's Issues

options of fileset does not support nodir option

test case: a directory include ms.js directory which contain index.js like this:

a
└── ms.js
    └── index.js

I only want index.js so use nodir option for glob to exclude ms.js directory:

fileset('**/*.js', '', {nodir: true}, function(err, files) {
  console.log(files);
});

Expected: only print index.js
Actually: print index.js and ms.js

How are 'match' and 'include' events different?

In my experience both - 'match' and 'include' events produce the same output. Would be more useful if 'match' fired on every match - be it include or exclude entry and 'include' - fired only for the files that will be included in the final fileset.

Are spaces in paths supported?

The documentation mentions that you can check multiple patterns like so:

fileset('**.coffee README.md *.json Cakefile **.js', 'node_modules/**')

Is there any way to use this library with paths that have spaces in them? I've tried surrounding the path in quotes... "/bravado site/views/**/*.hbs" to no avail.

Minimatch 0.3 issues

Just FYI, the version of minimatch is causing some issues for those running Node 0.8 see minimatch#35 . Any chance we can clamp down the package.json for fileset to 0.2.X?

Possible to add a license?

Really neat library.

Would it be possible to add a (preferably MIT) license so I can use it in settings where these things matter?

Thanks in advance,
Krishnan

Not normalized exclude path don't work

Ex: include /bla/./bla/**/*, exclude /bla/./bla/_* don't work "as expected".
Since my problem is in a grunt context, I just normalize my needed paths before playing with some *.

Update test suite

Test suite no longer pass. fileset needs an update in its test suite to make it pass again.

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.