-
Notifications
You must be signed in to change notification settings - Fork 680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple --exclude arguments #905
Comments
Thanks for the suggestion! I agree this would be a helpful. If anyone would like to implement this, please reach out for discussion! |
I took a look to try and find where this is defined, but seems more complicated than a first glance offers. Perhaps it would make sense to use https://github.com/cacjs/cac (personal favourite in that space) instead of what appears to be a custom built solution. cac already supports the |
@balupton For your use case, wouldn't the following work? Essentially you are passing a list of globs wrapped in curly brackets. typedoc --exclude '{**/*test*,**/node_modules/**,**/test/**}' |
Perhaps we need to set up a simple test against that to verify. |
Yeah, we should test that. I seem to recall bracket syntax didn't work well. |
May be relevant. Just taking notes for reference typedoc/src/lib/application.ts Lines 252 to 282 in dbdbfca
typedoc/src/lib/converter/converter.ts Lines 385 to 397 in 1c4c515
typedoc/src/lib/utils/paths.ts Lines 6 to 28 in e650aa7
|
@aciccarello That glob syntax has strange semantics -- I can't tell what it's actually doing -- if I remove the first test clause, it no longer filters node_modules. If I change test to spec, it's not actually filtering out spec files. |
@Downchuck that's because TypeDoc currently splits the glob on |
@Gerrit0 No idea how to math that in my brain pan - but this is working |
As of 0.16, this is supported. |
Via the API, exclude supports an array #170 (comment)
However, via the CLI, it only supports a single usage instead of multiple. It would be nice if the CLI concatenated multiple
--exclude
values into an array, so we can do:as unfortunately, this workaround does not work for the above:
The text was updated successfully, but these errors were encountered: