From f319d07bb02188b75104f19ac456b1dde8429b1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Thu, 26 Apr 2012 20:04:34 +0200 Subject: [PATCH] Grunt: Ignore ajax content test files in htmllint task --- grunt.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/grunt.js b/grunt.js index b22a5a7a71e..f6400be4fb3 100644 --- a/grunt.js +++ b/grunt.js @@ -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: {