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

How to specify which files are validated? #67

Open
samdutton opened this issue Oct 21, 2014 · 0 comments
Open

How to specify which files are validated? #67

samdutton opened this issue Oct 21, 2014 · 0 comments

Comments

@samdutton
Copy link

I'm unclear about how to specify which files to validate, and how validation-status.json works.

I want to validate all index.html files in directories under my/path. For example: my/path/dir1/index.html, my/path/dir2/index.html and my/path/dir3/index.html.

My Gruntfile.js has this:

files: {
        src: ['my/path/**/index.html']
},
options: {
    reset: true
}

However, only two files in the directories under my/path get validated when I run grunt validation.

validation-status.json has only this (i.e. only a reference to the first file/subdirectory):

{"my/path/dir1/index.html":true}

What am I missing?

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