bitovi / documentjs

The sophisticated documentation engine
https://documentjs.com/
MIT License
598 stars 381 forks source link

Multiple globs in one site configuration #227

Open rjgotten opened 8 years ago

rjgotten commented 8 years ago

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.