-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
36 lines (27 loc) · 865 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
32
33
34
35
36
var gulp = require('gulp')
var livereload = require('gulp-livereload')
var connect = require('gulp-connect')
require('./tasks/sass')
require('./tasks/browserify')
require('./tasks/assemble')
gulp.task('build', ['sass', 'browserify', 'assemble'])
gulp.task('default', ['sass', 'watchify', 'assemble'], function() {
livereload.listen()
gulp.watch(['./**/*.hbs'], ['assemble'])
gulp.watch(['./**/*.scss'], ['sass'])
// Watchify handles the JavaScript
gulp.watch(['./styles/*.css'], function(event) {
livereload.changed(event.path)
})
})
gulp.task('server', ['sass', 'watchify', 'assemble'], function() {
livereload.listen()
connect.server({
root: './'
})
gulp.watch(['./**/*.hbs'], ['assemble'])
gulp.watch(['./**/*.scss'], ['sass'])
gulp.watch(['./styles/*.css'], function(event) {
livereload.changed(event.path)
})
})