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

Added support for glob patterns #12

Merged
merged 1 commit into from
Oct 19, 2015

Conversation

peterhaldbaek
Copy link
Contributor

Running a11y from the command line has glob pattern support but
the grunt plugin was missing this. This is due to the fact that
glob pattern support exists in the cli.js file which is not
exposed as such by the a11y module.

So now it should be possible to configure the plugin like this

grunt.initConfig({
  a11y: {
    dev: {
      options: {
        urls: ['**/*.html']
      }
    }
  }
});

Unit tests showing this was added too using a black-box (and
somewhat crude) approach. I couldn't find a better way of testing
this for now.

Running `a11y` from the command line has glob pattern support but
the grunt plugin was missing this. This is due to the fact that
glob pattern support exists in the cli.js file which is not
exposed as such by the `a11y` module.

So now it should be possible to configure the plugin like this

```js
grunt.initConfig({
  a11y: {
    dev: {
      options: {
        urls: ['**/*.html']
      }
    }
  }
});
```

Unit tests showing this was added too using a black-box (and
somewhat crude) approach. I couldn't find a better way of testing
this for now.
@peterhaldbaek
Copy link
Contributor Author

@lucalanca

@lucalanca
Copy link
Owner

@peterhaldbaek thanks for your PR. This is a great feature. 👍

lucalanca added a commit that referenced this pull request Oct 19, 2015
Added support for glob patterns
@lucalanca lucalanca merged commit 2d810d4 into lucalanca:master Oct 19, 2015
@lucalanca
Copy link
Owner

@lucalanca
Copy link
Owner

Also adds to documentation: 1315055

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

Successfully merging this pull request may close these issues.

2 participants