Skip to content

Instantly share code, notes, and snippets.

@alanhoff
Created June 6, 2014 16:22
Show Gist options
  • Select an option

  • Save alanhoff/d1494c1e1cf13c81df56 to your computer and use it in GitHub Desktop.

Select an option

Save alanhoff/d1494c1e1cf13c81df56 to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
var connect = require('gulp-connect');
var livereload = require('gulp-livereload');
var watch = require('gulp-watch');
gulp.task('connect', function() {
connect.server({
root : __dirname
});
});
gulp.task('watch', function() {
livereload.listen();
gulp.watch('./**').on('change', livereload.changed);
});
gulp.task('default', ['connect', 'watch']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment