diff options
author | Bardi Harborow <bardi@bardiharborow.com> | 2017-01-23 12:38:34 +0300 |
---|---|---|
committer | Bardi Harborow <bardi@bardiharborow.com> | 2017-01-23 12:53:17 +0300 |
commit | c5a9ebf57635cdf5096e76be961a05367edd3ddf (patch) | |
tree | 7a879e4bb9e001ffe68d6f0f0a48a982509d1417 /Gruntfile.js | |
parent | 563926717cbc1420218796396fac06c1005447bf (diff) |
Move htmllint to npm script.
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 7d16ff4320..6b5bca0efb 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -162,26 +162,6 @@ module.exports = function (grunt) { } }, - htmllint: { - options: { - ignore: [ - 'Attribute “autocomplete” is only allowed when the input type is “color”, “date”, “datetime”, “datetime-local”, “email”, “hidden”, “month”, “number”, “password”, “range”, “search”, “tel”, “text”, “time”, “url”, or “week”.', - 'Attribute “autocomplete” not allowed on element “button” at this point.', - 'Consider using the “h1” element as a top-level heading only (all “h1” elements are treated as top-level headings by many screen readers and other tools).', - 'Element “div” not allowed as child of element “progress” in this context. (Suppressing further errors from this subtree.)', - 'Element “img” is missing required attribute “src”.', - 'The “color” input type is not supported in all browsers. Please be sure to test, and consider using a polyfill.', - 'The “date” input type is not supported in all browsers. Please be sure to test, and consider using a polyfill.', - 'The “datetime” input type is not supported in all browsers. Please be sure to test, and consider using a polyfill.', - 'The “datetime-local” input type is not supported in all browsers. Please be sure to test, and consider using a polyfill.', - 'The “month” input type is not supported in all browsers. Please be sure to test, and consider using a polyfill.', - 'The “time” input type is not supported in all browsers. Please be sure to test, and consider using a polyfill.', - 'The “week” input type is not supported in all browsers. Please be sure to test, and consider using a polyfill.' - ] - }, - src: ['_gh_pages/**/*.html', 'js/tests/visual/*.html'] - }, - watch: { src: { files: '<%= concat.bootstrap.src %>', @@ -226,6 +206,9 @@ module.exports = function (grunt) { htmlhint: { command: 'npm run htmlhint' }, + htmllint: { + command: 'npm run htmllint' + }, sass: { command: 'npm run sass' }, @@ -288,7 +271,7 @@ module.exports = function (grunt) { require('time-grunt')(grunt) // Docs HTML validation task - grunt.registerTask('validate-html', ['jekyll:docs', 'htmllint', 'exec:htmlhint']) + grunt.registerTask('validate-html', ['jekyll:docs', 'exec:htmllint', 'exec:htmlhint']) var runSubset = function (subset) { return !process.env.TWBS_TEST || process.env.TWBS_TEST === subset |