@@ -342,8 +342,22 @@ module.exports = function(grunt) {
342
342
dest : 'p5-reference/'
343
343
}
344
344
} ,
345
- htmllint : {
346
- all : {
345
+
346
+ htmlhint : {
347
+ html1 : {
348
+ options : {
349
+ 'attr-value-double-quotes' : false ,
350
+ 'alt-require' : true ,
351
+ 'doctype-first' : true ,
352
+ 'title-require' : true ,
353
+ 'attr-no-duplication' : true ,
354
+ 'input-requires-label' : true ,
355
+ 'tags-check' : true ,
356
+ 'tagname-lowercase' : true ,
357
+ 'tagname-specialchars' : true ,
358
+ 'empty-tag-not-self-closed' : true ,
359
+ 'id-unique' : true
360
+ } ,
347
361
src : [
348
362
'<%= config.dist %>/**/*.html' ,
349
363
'!<%= config.dist %>/**/CHANGES.html' ,
@@ -352,17 +366,10 @@ module.exports = function(grunt) {
352
366
'!<%= config.dist %>/**/learn/*.html' ,
353
367
'!<%= config.dist %>/**/examples/*.html' ,
354
368
'!<%= config.dist %>/**/reference/assets/index.html'
355
- ] ,
356
- options : {
357
- ignore : [
358
- / ^ T h i s d o c u m e n t a p p e a r s t o b e w r i t t e n i n E n g l i s h / ,
359
- / ^ B a d v a l u e “ h t t p s : / ,
360
- / ^ C o n s i d e r a d d i n g a “ l a n g ” a t t r i b u t e t o t h e “ h t m l ” / ,
361
- / ^ A t t r i b u t e “ p a y p a l e x p r e s s ” n o t a l l o w e d o n e l e m e n t “ s c r i p t ” a t t h i s p o i n t ./
362
- ]
363
- }
369
+ ]
364
370
}
365
371
} ,
372
+
366
373
shell : {
367
374
generate_dataJSON : {
368
375
command : `git checkout ${ grunt . option ( 'target' ) } && npm ci && npm run grunt yui build` ,
@@ -402,7 +409,7 @@ module.exports = function(grunt) {
402
409
grunt . loadNpmTasks ( 'grunt-file-append' ) ;
403
410
grunt . loadNpmTasks ( 'grunt-contrib-compress' ) ;
404
411
grunt . loadNpmTasks ( 'grunt-contrib-requirejs' ) ;
405
- grunt . loadNpmTasks ( 'grunt-html ' ) ;
412
+ grunt . loadNpmTasks ( 'grunt-htmlhint ' ) ;
406
413
407
414
// i18n tracking task
408
415
grunt . registerTask ( 'i18n' , function ( ) {
@@ -495,7 +502,7 @@ module.exports = function(grunt) {
495
502
'file_append' ,
496
503
'compress' ,
497
504
'i18n' ,
498
- 'htmllint '
505
+ 'htmlhint '
499
506
] ) ;
500
507
501
508
// runs with just grunt command
0 commit comments