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

MarkbotFile scoping #168

Open
thomasjbradley opened this issue Nov 12, 2017 · 1 comment
Open

MarkbotFile scoping #168

thomasjbradley opened this issue Nov 12, 2017 · 1 comment

Comments

@thomasjbradley
Copy link
Owner

This is a complicated problem that I’m not sure needs to be solved, but would be very helpful, especially for large projects like the pattern libraries.

Some kind of scoped MarkbotFiles where certain requirements can be specified against certain files, but different requirements against different files. It’s possible to do this if you know the names of the files ahead of time, but if the filenames are unknown it isn’t possible.

Here’s my initial thought:

scopes:
  - path: 'patterns/*'
    inherit:
      - html
      - css
    allFiles:
      html:
        outline: false
  
  - path: 'pages/*'
    inherit:
      - html
      - aria-landmarks
@thomasjbradley
Copy link
Owner Author

This is probably completely unnecessary because Patternbot now puts different MarkbotFiles into all the necessary folders of the pattern library.

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

No branches or pull requests

1 participant