0

I have 2 directories, one to keep to generate documentation and not the other one. They're:

  • client-dev
  • client

Directory client-dev is to be included in generating documentation. The other one, client should not be included.

My .esdoc.json file:

{
    ...
    "excludes": ["(node_modules|client)"]
    ...
}

Specifying client in the excludes option above will exclude client-dev too because it contains the word client. How to keep client-dev but exclude client?

Tomerikoo
  • 18,379
  • 16
  • 47
  • 61
Dee
  • 7,455
  • 6
  • 36
  • 70

1 Answers1

0

I found it out how, it's rather simple.

Adding a slash after client will exclude everything in it, and that doesn't spoil the selection of files in client-dev:

{
    ...
    "excludes": ["(.git|node_modules)","client/"]
    ...
}
Dee
  • 7,455
  • 6
  • 36
  • 70