Skip to content
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

How to exclude multiple patterns #477

Closed
taffeldt opened this issue Apr 11, 2017 · 2 comments
Closed

How to exclude multiple patterns #477

taffeldt opened this issue Apr 11, 2017 · 2 comments
Labels
question Question about functionality

Comments

@taffeldt
Copy link

I use Typedoc for my Angular 2 project.
I am trying to prevent Typedoc from reading out the folder dist/ where I store my compiled .js files (as well as some other stuff that makes Typescript crash) but I would also like to exclude the folder e2e/ as well as all files that end on .spec.ts
I understand the flag --exclude is being used for that and that it makes use of the Glob pattern.
My pattern would be ./dist/** ./e2e/** and */**.spec.ts
I tried --exclude {./dist/*/**,./e2e/**,./client/test.ts,*/**.spec.ts}
as well as --exclude ./dist/** --exclude ./e2e/** --exclude */**.spec.ts
In case 1 the program doesn't exclude anything, in case 2 only one of them.

So I am wondering how I am supposed to do this and would highly appreciate some help.
I think #475 might be related (as in it was supposed because the author had the same problem).

@aciccarello aciccarello added the question Question about functionality label Apr 12, 2017
@aciccarello
Copy link
Collaborator

There are some comments on #170 that should be helpful. TypeDoc uses minmatch globs. PRs to improve the docs are always appreciated.

@mend3
Copy link

mend3 commented Nov 26, 2021

exclude "sql" and "utils" under dir "packages/libs/"
typedoc --exclude './packages/libs/[(sql|utils)]*'

with monorepo
all BUT "sql" and "utils"
typedoc --entryPointStrategy packages './packages/libs/[!(sql|utils)]*'

working fine for me

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about functionality
Projects
None yet
Development

No branches or pull requests

3 participants