Skip to content

How to exclude directories? #918

@gauntface

Description

@gauntface
  • What version of documentation.js are you using?: 5.3.2
  • How are you running documentation.js (on the CLI, Node.js API, Grunt, other?): CLI

On a project, we have fairly gnarly setup of multiple modules in a monorepo each can contain a node_modules and build directory.

By default I'd like to include all .mjs files in the docs and exclude node_modules and build directories.

What is the best approach for including / excluding files for a package structure like?

- packages/
    - module-one/
        - index.mjs
        - build/
            - build.js
        - node_modules/
            - module-two/
                - index.mjs
        - other-dir/
            - example.mjs

At the moment I just got mjs building with:

documentation serve packages/**/* --require-extension mjs --parse-extension mjs

Which is obviously including build and node_modules

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions