Permalink
Browse files

Task now accepts wildcards for the files attribute

  • Loading branch information...
1 parent 7f814c4 commit 2add55e29fed23754383af055c22f024988b90a8 @sabarasaba sabarasaba committed Mar 27, 2013
Showing with 7 additions and 8 deletions.
  1. +3 −4 Gruntfile.js
  2. +4 −4 tasks/arialinterTask.js
View
@@ -8,11 +8,10 @@ module.exports = function(grunt) {
files: ['test/**/*_test.js']
},
arialinter: {
- files: [
- '<!doctype html><html lang="en"><head><title>titulo test</title></head><body style="background-color: white;"> <h1 style="color: black;">hola</h1><img src="asdf.jpg" alt="woop" /> <div class="entry"> <p>{{title}}</p> <h2>By {{author.name}}</h2> <div class="body">{{body}}</div></div> </body> </html>'
- ],
+ files: ['test/testFiles/**.html'],
options: {
- templates: true
+ templates: true,
+ levels: 'A'
}
},
copy: {
View
@@ -57,27 +57,27 @@ module.exports = function(grunt) {
if ((this.options().templates) && (this.options().levels)) {
console.log('for templates and with level');
- executeLinter(this.data, done, {
+ executeLinter(this.filesSrc, done, {
level: this.options().levels,
template: true
});
} else {
if (this.options().templates) {
console.log('only for templates');
- executeLinter(this.data, done, {
+ executeLinter(this.filesSrc, done, {
template: true
});
}
else {
if (this.options().levels) {
console.log('only for level');
- executeLinter(this.data, done, {
+ executeLinter(this.filesSrc, done, {
level: this.options().levels
});
}
else {
console.log('Applying default linter..');
- executeLinter(this.data, done);
+ executeLinter(this.filesSrc, done);
}
}
}

0 comments on commit 2add55e

Please sign in to comment.