]> source.dussan.org Git - jquery-ui.git/commitdiff
Grunt: Add grunt-html for html validation
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Sun, 22 Apr 2012 10:19:16 +0000 (12:19 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Sun, 22 Apr 2012 10:19:16 +0000 (12:19 +0200)
grunt.js
package.json

index bbe6323baae5cf27fa17acd834f173dd82bc5ccb..fd322065953ef9d9d9d686bf76e2479a722982b8 100644 (file)
--- 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" );
index d69b9c3701614c06144e9ab86cedb51ae4aed538..5257626f0177644e4096f456871a595c1d6dd0e1 100644 (file)
@@ -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"
   },