File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ cssFiles.forEach(function( file ) {
73
73
grunt . loadNpmTasks ( "grunt-css" ) ;
74
74
// file size comparison tasks
75
75
grunt . loadNpmTasks ( "grunt-compare-size" ) ;
76
+ // html validation task
77
+ grunt . loadNpmTasks ( "grunt-html" ) ;
76
78
77
79
grunt . registerHelper ( "strip_all_banners" , function ( filepath ) {
78
80
return grunt . file . read ( filepath ) . replace ( / ^ \s * \/ \* [ \s \S ] * ?\* \/ \s * / g, "" ) ;
@@ -138,6 +140,9 @@ grunt.initConfig({
138
140
} ,
139
141
min : minify ,
140
142
cssmin : minifyCSS ,
143
+ html : {
144
+ all : [ "demos/**/*.html" , "tests/**/*.html" ]
145
+ } ,
141
146
copy : {
142
147
dist : {
143
148
src : [
@@ -504,7 +509,7 @@ grunt.registerTask( "clean", function() {
504
509
require ( "rimraf" ) . sync ( "dist" ) ;
505
510
} ) ;
506
511
507
- grunt . registerTask ( "default" , "lint csslint qunit build compare_size" ) ;
512
+ grunt . registerTask ( "default" , "lint csslint html qunit build compare_size" ) ;
508
513
grunt . registerTask ( "sizer" , "concat:ui min:dist/jquery-ui.min.js compare_size" ) ;
509
514
grunt . registerTask ( "build" , "concat min cssmin" ) ;
510
515
grunt . registerTask ( "release" , "clean build copy:dist copy:dist_min copy:dist_min_images copy:dist_css_min md5:dist zip:dist" ) ;
Original file line number Diff line number Diff line change 29
29
"grunt" : " 0.3.9" ,
30
30
"grunt-css" : " 0.1.1" ,
31
31
"grunt-compare-size" : " 0.1.1" ,
32
+ "grunt-html" : " 0.1.x" ,
32
33
"request" : " 2.9.153" ,
33
34
"rimraf" : " 2.0.1"
34
35
},
You can’t perform that action at this time.
0 commit comments