diff options
| author | Pierre-Denis Vanduynslager <[email protected]> | 2017-03-18 22:08:55 -0400 |
|---|---|---|
| committer | Pierre-Denis Vanduynslager <[email protected]> | 2017-03-18 22:08:55 -0400 |
| commit | f5cc59145642d78d7abbdf38fee1905786da5367 (patch) | |
| tree | 94e9454a55f9a55353a0ade4bebb7935d03e7da1 /Gruntfile.js | |
| parent | 4ab576a41941b720e2f6fa77724203f66a1d3a17 (diff) | |
| parent | 192a8af0dfcdb5d64a5f273b804011bdcd5d2436 (diff) | |
| download | bootstrap-f5cc59145642d78d7abbdf38fee1905786da5367.tar.xz bootstrap-f5cc59145642d78d7abbdf38fee1905786da5367.zip | |
Merge branch 'twbs/v4-dev' into dropdown-keyboard
Diffstat (limited to 'Gruntfile.js')
| -rw-r--r-- | Gruntfile.js | 47 |
1 files changed, 11 insertions, 36 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 7d16ff432..428ef2d5b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -148,40 +148,6 @@ module.exports = function (grunt) { } }, - jekyll: { - options: { - bundleExec: true, - config: '_config.yml', - incremental: false - }, - docs: {}, - github: { - options: { - raw: 'github: true' - } - } - }, - - 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 +192,15 @@ module.exports = function (grunt) { htmlhint: { command: 'npm run htmlhint' }, + htmllint: { + command: 'npm run htmllint' + }, + jekyll: { + command: 'npm run jekyll' + }, + 'jekyll-github': { + command: 'npm run jekyll-github' + }, sass: { command: 'npm run sass' }, @@ -288,7 +263,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', ['exec:jekyll', 'exec:htmllint', 'exec:htmlhint']) var runSubset = function (subset) { return !process.env.TWBS_TEST || process.env.TWBS_TEST === subset @@ -346,7 +321,7 @@ module.exports = function (grunt) { grunt.registerTask('lint-docs-css', ['exec:scss-lint-docs']) grunt.registerTask('docs-js', ['exec:uglify-docs']) grunt.registerTask('docs', ['lint-docs-css', 'docs-css', 'docs-js', 'clean:docs', 'copy:docs']) - grunt.registerTask('docs-github', ['jekyll:github']) + grunt.registerTask('docs-github', ['exec:jekyll-github']) grunt.registerTask('prep-release', ['dist', 'docs', 'docs-github', 'compress']) |
