-
Notifications
You must be signed in to change notification settings - Fork 696
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
--exclude option does not work #395
Comments
Same problem here. |
same here. |
How to do multiple excludes? It seems that this not working: typedoc --out docs --exclude '**/+(test|node_modules)/**/*.ts' packages/filte
ring --module commonjs |
I have this: "docs": "typedoc --out dist/docs --target es6 --theme minimal --mode modules --exclude **/*.spec.ts src", But my spec files are still included in the docs/modules folder . Any ideas? Edit: It looks like typedoc is ignoring the |
@tonysneed Are you on Windows? Have you tried quoting the argument like |
@blakeembrey That worked! Thanks!! |
I have the same issue. I have tried basically everything there is to try but it still includes my test files. As a side note (and probably another issue); if I have a OS: Windows |
If anyone can provide a repo that can reproduce this issue it would help greatly. As far as I can tell the exclude option works correctly so long as the minimatch glob is set correctly. A few things to remember:
If you aren't sure what will be excluded, I've set up a simple RequireBin demo to demonstrate which patterns do what. Examples:
Edit: December 2018 - The above advice regarding absolute paths will no longer be valid with the next release of TypeDoc. The exclude option has been updated to use the relative path to |
Isn't having to add the Personally I finally dug into your code a found out that I had to add the |
For people having problems with multiple excludes, I got it working with See #170 (comment) |
Seems there are two issues here:
For 2, I've created #905 to continue it. For 1, seems like it (and thus this issue) can be closed. |
Closing this as the original issue is handled by #896 and later issues have been resolved or split into other issues. |
Trying to generate documentation for my project I have faced with the problem that typedoc tried to generate documentation for
spec.ts
files I excluded in the typedoc command in mypackage.json
script section:It worked even when I moved my tests from
src
to the separatetest
directory. So I assume that specifying a directory as an argument oftypedoc
command does not work too.I googled a lot, but found nothing except an old issue that did not help me at all despite I tried all of examples from there.
So I decided to look at the code, and after some investigation found that it might be a problem at this line. When I added an
exclude
check from here, it compiled as it should, only for non-spec files.I use the
typedoc@0.5.5
,typescript@2.2.0-dev
.The text was updated successfully, but these errors were encountered: