Skip to content

Multiple globs in one site configuration #227

@rjgotten

Description

@rjgotten

Would be a big win for readability if multiple GlobObject specs were allowed on a siteConfig.
E.g.

"sites": {
    "docs": {
      "parent" : "root",
      "dest"   : "./out",
      "glob"   : [{
        "pattern" : "docs/**/*.md"
      }, {
        "cwd"     : "../Scripts/some-namespace",
        "pattern" : "{cherry,picked,files}.js"
      }, {
        "cwd"     : "../Scripts/some-other-namespace",
        "pattern" : "**/*.js",
        "ignore"  : "{ignore,only,these,files}.js"
      }]
    }
  }

Having to roll that up into one glob leads to an unreadable, unmaintainable mess.

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