aboutsummaryrefslogtreecommitdiffstats
path: root/grunt.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-04-26 20:04:34 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-04-26 20:04:34 +0200
commitf319d07bb02188b75104f19ac456b1dde8429b1a (patch)
tree64020a4d5ce26dcdf353c54dc89f14a3b0343a01 /grunt.js
parent4fd2befe94421d330c02004dcad4cc03a38ba99e (diff)
downloadjquery-ui-f319d07bb02188b75104f19ac456b1dde8429b1a.tar.gz
jquery-ui-f319d07bb02188b75104f19ac456b1dde8429b1a.zip
Grunt: Ignore ajax content test files in htmllint task
Diffstat (limited to 'grunt.js')
-rw-r--r--grunt.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/grunt.js b/grunt.js
index b22a5a7a7..f6400be4f 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: {