aseemk / requireDir

Node.js helper to require() directories.
MIT License
484 stars 60 forks source link

Support a filter option to exclude particular files #27

Closed lennym closed 6 years ago

lennym commented 8 years ago

We're using require-dir to load a directory of gulp tasks. However, we want to be able to exclude certain files from being required when executed in a production environment as they include dependencies that might not be installed.

Being able to apply a filter like function (f) { return process.env.NODE_ENV !== 'production' && !f.match(/$dev/); } would mean we can just ignore any dev-only task from the directory when run in a prod environment.

aseemk commented 8 years ago

Sorry folks, I've been unusually busy with both work and life for a sustained period of time now. I keep meaning to get to these PRs (and other projects), but don't find myself with the time + energy too often.

One thing I've done with another project is to invite one or two other people to be collaborators in the project and help maintain it. Anyone here interested in that?

I'd just ask that you be mindful of keeping this project focused, and not let it get too complex. E.g. I'm not 100% sure it's a good idea to accept all of the currently open PRs, but I haven't looked into them fully or thought deeply about it.

Apologies again for the delay, and thank you for understanding. =)

bondden commented 8 years ago

Anyone here interested in that?

Yes

aseemk commented 7 years ago

( @bondden: I missed your reply! Are you still interested? )

Hi there,

I'm sorry I haven't been timely in responding to these issues and PRs.

If you're interested in taking over the maintainer role for this project, please let me know.

More details: https://github.com/aseemk/requireDir/pull/31#issuecomment-255744987

Cheers, Aseem