-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
31 lines (28 loc) · 848 Bytes
/
gulpfile.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
var gulp = require('gulp'),
watch = require('gulp-watch'),
uglify = require('gulp-uglify'),
concat = require('gulp-concat'),
coffee = require('gulp-coffee'),
spawn = require('gulp-spawn'),
autoprefixer = require('gulp-autoprefixer'),
livereload = require('gulp-livereload'),
clean = require('gulp-clean'),
cache = require('gulp-cache'),
notify = require('gulp-notify'),
deploy = require('gulp-gh-pages'),
imagemin = require('gulp-imagemin');
gulp.task('default', function() {
spawn({
cmd: 'jekyll serve',
args: '--watch'
});
var server = livereload()
gulp.watch('_source/**/*')
.on('change', function(file) {
server.changed(file.path)
});
});
gulp.task('deploy', function() {
gulp.src('_site/**/*')
.pipe(deploy());
});