Skip to content

Instantly share code, notes, and snippets.

Last active December 20, 2015 22:59
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Grunt file for building and serving jekyll sites. Means you can just do grunt watch instead of running two Jekyll commands
module.exports = function(grunt) {
pkg: grunt.file.readJSON('package.json'),
shell: {
jekyllBuild: {
command: 'jekyll build'
jekyllServe: {
command: 'jekyll serve'
watch: {
files: [
tasks: ['shell:jekyllBuild', 'shell:jekyllServe'],
options: {
interrupt: true,
atBegin: true,
livereload: true
grunt.registerTask('default', ['shell']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment