Created
September 3, 2014 14:34
-
-
Save leebrandt/9045257013b49af0e53a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
connect = require('gulp-connect'); | |
gulp.task('connect', function(){ | |
connect.server({ | |
root: 'app', | |
livereload: true | |
}); | |
}); | |
gulp.task('html', function () { | |
gulp.src('app/**/*.html') | |
.pipe(connect.reload()); | |
}); | |
gulp.task('watch', function () { | |
gulp.watch(['app/**/*.html', 'app/**/*.js'], ['html']); | |
}); | |
gulp.task('serve', ['connect','watch']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment