-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgulpfile.babel.js
40 lines (30 loc) · 1011 Bytes
/
gulpfile.babel.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import gulp from 'gulp'
// Paths
import path from './tasks/paths'
// Tasks
import browserSync from './tasks/browser-sync'
import jekyllBuild from './tasks/jekyll-build'
import jekyllReload from './tasks/jekyll-reload'
import jekyllAdmin from './tasks/jekyll-admin'
import watch from './tasks/watch'
import watchPosts from './tasks/watch-posts'
import postcss from './tasks/postcss'
import images from './tasks/images'
import js from './tasks/js'
// Style
gulp.task('styles', () => postcss())
// Image
gulp.task('images', () => images())
// Javascript
gulp.task('js', () => js())
// Browser sync
gulp.task('server', () => browserSync())
// Jekyll reload
gulp.task('jekyll:build', () => jekyllBuild())
gulp.task('jekyll:reload', () => jekyllReload())
gulp.task('jekyll:admin', ['watch:posts'], () => jekyllAdmin())
// Watch
gulp.task('watch', () => watch())
gulp.task('watch:posts', () => watchPosts())
// Default task
gulp.task('default', ['js', 'styles', 'images', 'jekyll:build', 'server', 'watch'])