diff options
author | Bardi Harborow <bardi@bardiharborow.com> | 2017-02-25 08:32:18 +0300 |
---|---|---|
committer | Bardi Harborow <bardi@bardiharborow.com> | 2017-02-25 09:44:26 +0300 |
commit | db23b1f32e277e0e39485284f4007e8c19a31cf6 (patch) | |
tree | ba29e323179afb82aa0a30670b2347f36c635b9d /Gruntfile.js | |
parent | 45a065739e171d4cffd0514efc9e0cd3a2cc7566 (diff) |
Move Jekyll to npm script.
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 6b5bca0efb..428ef2d5bd 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -148,20 +148,6 @@ module.exports = function (grunt) { } }, - jekyll: { - options: { - bundleExec: true, - config: '_config.yml', - incremental: false - }, - docs: {}, - github: { - options: { - raw: 'github: true' - } - } - }, - watch: { src: { files: '<%= concat.bootstrap.src %>', @@ -209,6 +195,12 @@ module.exports = function (grunt) { htmllint: { command: 'npm run htmllint' }, + jekyll: { + command: 'npm run jekyll' + }, + 'jekyll-github': { + command: 'npm run jekyll-github' + }, sass: { command: 'npm run sass' }, @@ -271,7 +263,7 @@ module.exports = function (grunt) { require('time-grunt')(grunt) // Docs HTML validation task - grunt.registerTask('validate-html', ['jekyll:docs', 'exec: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 @@ -329,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']) |