diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-04-22 12:19:16 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-04-22 12:19:16 +0200 |
commit | c22fb5606292aadb0a5e8a72b5cd5e6def26cdc1 (patch) | |
tree | 8f202614dce63e06a93e48bbd7c613612f0a9420 /grunt.js | |
parent | ce3c7fab938c755b10d5e55bddccdde1be4819f1 (diff) | |
download | jquery-ui-c22fb5606292aadb0a5e8a72b5cd5e6def26cdc1.tar.gz jquery-ui-c22fb5606292aadb0a5e8a72b5cd5e6def26cdc1.zip |
Grunt: Add grunt-html for html validation
Diffstat (limited to 'grunt.js')
-rw-r--r-- | grunt.js | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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" ); |