Skip to content

Instantly share code, notes, and snippets.

@andersoonweb
Created May 4, 2015 03:40
Show Gist options
  • Save andersoonweb/3a38ab003ac19329b124 to your computer and use it in GitHub Desktop.
Save andersoonweb/3a38ab003ac19329b124 to your computer and use it in GitHub Desktop.
Teste
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
shell: {
jekyllBuild: {
command: 'jekyll build'
}
},
connect: {
server: {
options: {
port: 8080,
base: '_site'
}
}
},
watch: {
livereload: {
files: [
'_config.yml',
'index.html',
'_layouts/**',
'_posts/**',
'_includes/**',
],
tasks: ['shell:jekyllBuild'],
options: {
livereload: true
},
},
}
});
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-shell');
grunt.registerTask('default', ['shell', 'connect', 'watch'])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment