Skip to content

Instantly share code, notes, and snippets.

@Wolfr
Created April 7, 2013 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wolfr/5332250 to your computer and use it in GitHub Desktop.
Save Wolfr/5332250 to your computer and use it in GitHub Desktop.
Gruntfile.js
// Sample grunt-jekyll grunt.js file
// https://github.com/dannygarcia/grunt-jekyll
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jekyll: {
server : {
src : 'templates',
dest: 'dev',
server : true,
server_port : 8000,
auto : true
},
dev: {
src: 'templates',
dest: 'dev'
},
prod: {
src: 'templates',
dest: 'prod'
}
},
server
watch: { // for development run 'grunt watch'
jekyll: {
files: ['templates/*.html'],
tasks: ['jekyll:dev']
}
}
watch: { // for development run 'grunt watch'
jekyll: {
files: ['templates/*.html'],
tasks: ['jekyll:dev']
}
}
});
// Default task. Run standard jekyll server.
grunt.registerTask('default', ['server', 'watch']);
// plugin tasks
grunt.loadNpmTasks('grunt-jekyll');
grunt.loadNpmTasks('grunt-contrib-watch');
};
@nickcotton
Copy link

@Wolfr I imagine this is too late to help but I'll say it for the sake of other people. Try killing lines 28-34 in your example, looks like they're what's causing that error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment