flow icon indicating copy to clipboard operation
flow copied to clipboard

How to make Flow process selected sub-folder from node_modules only

Open Efimster opened this issue 11 years ago • 2 comments

version 0.18.1

I have a project where node_modules folder contains more than 50 sub-folders. I was trying to configure flow to ignore node_modules/* but node_modules/flux/flow/include .

Here are failed attempts that had to work from my perspective. What i'm doing wrong? Thanks

approach 1) //.flowconfig [ignore] ./node_modules/.

[include] node_modules/flux/flow/include

approach 2) //.flowconfig [ignore] ./node_modules/(?!flux/flow/include).

approach 3) //.flowconfig [ignore] ./node_modules/[^f][^l][^u][^x]/[^f][^l][^o][^w]/[^i][^n][^c][^l].

Efimster avatar Nov 25 '15 22:11 Efimster

I don't think there's a good way to do this. see #564

mroch avatar Nov 26 '15 01:11 mroch

This could be achieved by exclusion-inclusion. How do [ignore] and [include] interact? Could we make them chain? I think it's quite common to ignore node_modules save for a small subset; that suggests that we should make [include] override [ignore].

ncalexan avatar Apr 22 '16 00:04 ncalexan