From c22fb5606292aadb0a5e8a72b5cd5e6def26cdc1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=CC=88rn=20Zaefferer?= Date: Sun, 22 Apr 2012 12:19:16 +0200 Subject: [PATCH] Grunt: Add grunt-html for html validation --- grunt.js | 7 ++++++- package.json | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/grunt.js b/grunt.js index bbe6323ba..fd3220659 100644 --- a/grunt.js +++ b/grunt.js @@ -73,6 +73,8 @@ cssFiles.forEach(function( file ) { grunt.loadNpmTasks( "grunt-css" ); // file size comparison tasks grunt.loadNpmTasks( "grunt-compare-size" ); +// html validation task +grunt.loadNpmTasks( "grunt-html" ); grunt.registerHelper( "strip_all_banners", function( filepath ) { return grunt.file.read( filepath ).replace( /^\s*\/\*[\s\S]*?\*\/\s*/g, "" ); @@ -138,6 +140,9 @@ grunt.initConfig({ }, min: minify, cssmin: minifyCSS, + html: { + all: ["demos/**/*.html", "tests/**/*.html"] + }, copy: { dist: { src: [ @@ -504,7 +509,7 @@ grunt.registerTask( "clean", function() { require( "rimraf" ).sync( "dist" ); }); -grunt.registerTask( "default", "lint csslint qunit build compare_size" ); +grunt.registerTask( "default", "lint csslint html qunit build compare_size" ); grunt.registerTask( "sizer", "concat:ui min:dist/jquery-ui.min.js compare_size" ); grunt.registerTask( "build", "concat min cssmin" ); grunt.registerTask( "release", "clean build copy:dist copy:dist_min copy:dist_min_images copy:dist_css_min md5:dist zip:dist" ); diff --git a/package.json b/package.json index d69b9c370..5257626f0 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "grunt": "0.3.9", "grunt-css": "0.1.1", "grunt-compare-size": "0.1.1", + "grunt-html": "0.1.x", "request": "2.9.153", "rimraf": "2.0.1" }, -- 2.39.5