aboutsummaryrefslogtreecommitdiff
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorBardi Harborow <[email protected]>2017-02-25 16:32:18 +1100
committerBardi Harborow <[email protected]>2017-02-25 17:44:26 +1100
commitdb23b1f32e277e0e39485284f4007e8c19a31cf6 (patch)
treeba29e323179afb82aa0a30670b2347f36c635b9d /Gruntfile.js
parent45a065739e171d4cffd0514efc9e0cd3a2cc7566 (diff)
downloadbootstrap-db23b1f32e277e0e39485284f4007e8c19a31cf6.tar.xz
bootstrap-db23b1f32e277e0e39485284f4007e8c19a31cf6.zip
Move Jekyll to npm script.
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js24
1 files changed, 8 insertions, 16 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 6b5bca0ef..428ef2d5b 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'])