-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
var gulp = require('gulp'); | ||
var shell = require('gulp-shell'); | ||
var browserSync = require('browser-sync').create(); | ||
|
||
// Task for building blog when something changed: | ||
gulp.task('build', shell.task(['bundle exec jekyll serve --incremental'])); | ||
// If you don't use bundle: | ||
// gulp.task('build', shell.task(['jekyll serve'])); | ||
// If you use Windows Subsystem for Linux (thanks @SamuliAlajarvela): | ||
// gulp.task('build', shell.task(['bundle exec jekyll serve --force_polling'])); | ||
|
||
// Task for serving blog with Browsersync | ||
gulp.task('serve', function () { | ||
browserSync.init({server: {baseDir: '_site/'}}); | ||
// Reloads page when some of the already built files changed: | ||
gulp.watch('_site/**/*.*').on('change', browserSync.reload); | ||
}); | ||
|
||
gulp.task('default', gulp.parallel('build', 'serve')); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.