var gulp = require('gulp'), connect = require('gulp-connect'), paths = require('./paths.js'), livereload = require('gulp-livereload'); gulp.task('watch', function() { gulp.watch(["./src/**/*.js", './lib/*.js', './lib/grammar/*.js'], [ 'browserifyForDebug' ]); gulp.watch("./src/**/*.scss", [ 'makeCss' ]); gulp.watch( './*.html' , function(files) { gulp.src(files.path).pipe(connect.reload()); }); }); gulp.task('connect', function() { connect.server({ root: __dirname + '/../', port : 4000, livereload: true }); });