From 074d1081ce4812a8e8517879b785723d0421b562 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Sun, 23 Nov 2014 17:13:24 -0500 Subject: [PATCH] Tweaking gulpfile to allow quick rebuilds of site --- gulpfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 14ab63e..4ad4c22 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -14,7 +14,7 @@ gulp.task('default', ['server'], function() { gulp.watch('./src/**/*.js', ['browserify']); }); -gulp.task('server', ['static', 'markup', 'compass', 'browserify'], function() { +gulp.task('server', ['build'], function() { watch('./build/**/*', { name: 'Server' }) .pipe(connect.reload()); return connect.server({ @@ -23,6 +23,8 @@ gulp.task('server', ['static', 'markup', 'compass', 'browserify'], function() { }); }); +gulp.task('build', ['static', 'markup', 'compass', 'browserify']); + gulp.task('static', function() { return gulp.src('./src/**/*.!(html|scss|js)') .pipe(gulp.dest('./build'));