Open marcooliveira opened 11 years ago
Check https://github.com/mklabs/node-fileset for ideas.
Big breakthrough for this issue in https://github.com/IndigoUnited/automaton/issues/50#issuecomment-12926218. This will be the base for improving exclusions.
Excluding files from a minimatch expression can be tricky, and the syntax can become a nightmare to read. Maybe we should come up with a simpler syntax?
If we take the
cp
example, we could support something like this:This would copy all the
.js
files, except those that end with.min.js
, the exclamation mark being a negation (exclusion) operator, and the comma separating these. This expression could be composed of several comma separated expressions and, in order for a file to match, it would have to match ALL the expressions.These sort of features should be provided in something like
ctx.file
, so that task creators don't have to do this by hand repetitively, and also it should be part of theautomaton-lib
. Check #45 for more information on this.