Skip to content

Instantly share code, notes, and snippets.

@parkji parkji/Gruntfile.js
Last active Dec 20, 2015

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
You can’t perform that action at this time.