module.exports = function (grunt) {
    // load all grunt tasks matching the `grunt-*` pattern
    require('load-grunt-tasks')(grunt);

    grunt.initConfig({

      autoprefixer: {
        build: {
          src: 'public/css/style.css'
        }
      },

      csscomb: {
        options: {
          config: 'public/css/.csscomb.json'
        },
        build: {
          src: 'public/css/style.css',
          dest: 'public/css/style.css'
        }
      },

      jekyll: {
        serve: {
          dest: '_site'
        }
      },

      watch: {
        jekyllSources: {
          files: [
            '*.html', '*.md', '*.yml', 'public/**', '_posts/**',
            '_projects/**', '_includes/**', '_layouts/**', '_drafts/**',
            'atom.xml'
          ],
          tasks: ['build']
        }
      },

      browserSync: {
        serve: {
          bsFiles: {
            src: ['_site/**']
          },
          options: {
            watchTask: true,
            server: {
              baseDir: '_site'
            }
          }
        }
      }

    });

    grunt.registerTask('clean', [
      'autoprefixer:build', 'csscomb:build'
    ]);

    // jekyll build task
    grunt.registerTask('build', ['jekyll']);

    // livereload task
    grunt.registerTask('serve', ['browserSync', 'watch']);

    // default task
    grunt.registerTask('default', 'clean');
}

module.exports = function (grunt) {
    // load all grunt tasks matching the `grunt-*` pattern
    require('load-grunt-tasks')(grunt);

    grunt.initConfig({

      autoprefixer: {
        build: {
          src: 'public/css/style.css'
        }
      },

      csscomb: {
        options: {
          config: 'public/css/.csscomb.json'
        },
        build: {
          src: 'public/css/style.css',
          dest: 'public/css/style.css'
        }
      },

      jekyll: {
        options: {
          drafts: true
        },
        serve: {
          dest: '_site'
        }
      },

      watch: {
        jekyllSources: {
          files: [
            '*.html', '*.md', '*.yml', 'public/**', '_posts/**',
            '_projects/**', '_includes/**', '_layouts/**', '_drafts/**',
            'atom.xml'
          ],
          tasks: ['build']
        }
      },

      browserSync: {
        serve: {
          bsFiles: {
            src: ['_site/**']
          },
          options: {
            watchTask: true,
            server: {
              baseDir: '_site'
            }
          }
        }
      }

    });

    grunt.registerTask('clean', [
      'autoprefixer:build', 'csscomb:build'
    ]);

    // jekyll build task
    grunt.registerTask('build', ['jekyll']);

    // livereload task
    grunt.registerTask('serve', ['browserSync', 'watch']);

    // default task
    grunt.registerTask('default', 'clean');
}

Allow grunt-jekyll to build drafts
Allow grunt-jekyll to build drafts
