johnsiwicki
3/7/2017 - 3:39 PM

gulp-sample.js

var gulp = require('gulp'),
  connect = require('gulp-connect');

var fileTowatch = ["*.html","application/**"] ;

gulp.task('connect', function() {
  connect.server({
    livereload: true,
    port : 8888
  });
});

gulp.task('html', function () {
  gulp.src(fileTowatch)
    .pipe(connect.reload());
});

gulp.task('watch', function () {
  gulp.watch(fileTowatch, ['html']);
});

gulp.task('default', ['connect', 'watch']);