2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

Add HTMLHint to the build; fixes #20297 (#20301)

[skip sauce]
This commit is contained in:
Chris Rebert
2016-07-14 16:22:56 -07:00
committed by GitHub
parent 610a089054
commit 0cf5204a48
3 changed files with 21 additions and 1 deletions
+4 -1
View File
@@ -278,6 +278,9 @@ module.exports = function (grunt) {
'postcss-docs': {
command: 'npm run postcss-docs'
},
htmlhint: {
command: 'npm run htmlhint'
},
'upload-preview': {
command: './grunt/upload-preview.sh'
}
@@ -327,7 +330,7 @@ module.exports = function (grunt) {
require('time-grunt')(grunt);
// Docs HTML validation task
grunt.registerTask('validate-html', ['jekyll:docs', 'htmllint']);
grunt.registerTask('validate-html', ['jekyll:docs', 'htmllint', 'exec:htmlhint']);
var runSubset = function (subset) {
return !process.env.TWBS_TEST || process.env.TWBS_TEST === subset;