Grunt: Ignore ajax content test files in htmllint task

This commit is contained in:
Jörn Zaefferer 2012-04-26 20:04:34 +02:00
parent 4fd2befe94
commit f319d07bb0

View File

@ -149,7 +149,10 @@ grunt.initConfig({
min: minify,
cssmin: minifyCSS,
htmllint: {
all: ["demos/**/*.html", "tests/**/*.html"]
// ignore files that contain invalid html, used only for ajax content testing
all: grunt.file.expand( [ "demos/**/*.html", "tests/**/*.html" ] ).filter(function( file ) {
return !/(?:ajax\/content\d\.html|tabs\/data\/test\.html)/.test( file );
})
},
copy: {
dist: {