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

Ability to specify array for multiple glob patterns #3

Open
leoj3n opened this issue Mar 31, 2017 · 0 comments
Open

Ability to specify array for multiple glob patterns #3

leoj3n opened this issue Mar 31, 2017 · 0 comments

Comments

@leoj3n
Copy link
Contributor

leoj3n commented Mar 31, 2017

It would help with developing the bit-docs-website if I could control what is included for processing into the generated docMap by specifying multiple glob patterns like:

    "glob": {
      "pattern": [
        "docs/bit-docs*/**/*.{js,md}",
        "node_modules/bit-docs/**/*.{js,md}",
        "node_modules/bit-docs-generate-html/**/*.{js,md}"
      ],
      "ignore": [
          "node_modules/bit-docs/lib/configure/**/*",
          "node_modules/bit-docs*/node_modules/**/*"
        ]
    },

Currently, to achieve this, I have to do something like:

    "glob": {
      "pattern": [
        "{node_modules,docs}/{bit-docs,bit-docs-generate-html,bit-docs-another,bit-docs-etc}/**/*.{js,md}"
      ],
      "ignore": [
          "node_modules/bit-docs/lib/configure/**/*",
          "node_modules/bit-docs*/node_modules/**/*"
        ]
    },

Which is hard to read and will become hard to edit. A better option would be to clone these dependency repos one at a time into the docs/bit-docs directory and update the ignore.

I could do that, but I still could benefit from the flexibility of being able to specify multiple glob patterns just like it is possible to specify multiple ignore patterns. Future developers will probably expect or request pattern to work the same as ignore.

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

No branches or pull requests

1 participant