diff --git a/gulpfile.coffee b/gulpfile.coffee index 23f45d6..7d06e2b 100644 --- a/gulpfile.coffee +++ b/gulpfile.coffee @@ -12,11 +12,9 @@ rename = require 'gulp-rename' uglify = require 'gulp-uglify' coffeeify = require 'coffeeify' ecstatic = require 'ecstatic' -lr = require 'tiny-lr' livereload = require 'gulp-livereload' plumber = require 'gulp-plumber' prefix = require 'gulp-autoprefixer' -reloadServer = lr() production = process.env.NODE_ENV is 'production' @@ -64,7 +62,7 @@ gulp.task 'templates', -> .pipe(jade(pretty: not production)) .on 'error', handleError .pipe gulp.dest paths.templates.destination - .pipe livereload(reloadServer) + .pipe livereload() gulp.task 'styles', -> styles = gulp @@ -76,7 +74,7 @@ gulp.task 'styles', -> styles = styles.pipe(CSSmin()) if production styles.pipe gulp.dest paths.styles.destination - .pipe livereload reloadServer + .pipe livereload() gulp.task 'assets', -> gulp @@ -89,7 +87,7 @@ gulp.task 'server', -> .listen 9001 gulp.task "watch", -> - reloadServer.listen 35729 + livereload.listen() gulp.watch paths.templates.watch, ['templates'] gulp.watch paths.styles.watch, ['styles'] @@ -107,7 +105,7 @@ gulp.task "watch", -> build .pipe gulp.dest paths.scripts.destination - .pipe(livereload(reloadServer)) + .pipe(livereload()) .emit 'update' diff --git a/package.json b/package.json index d9ac95a..639da2b 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,6 @@ "gulp-util": "~2.2.17", "gulp-stylus": "1.0.2", "gulp-jade": "~0.6.0", - "tiny-lr": "0.0.5", "gulp-livereload": "~2.1.0", "bower": "~1.3.5", "browserify-shim": "~3.6.0",