Tweaking gulpfile to allow quick rebuilds of site

This commit is contained in:
Jeff Avallone 2014-11-23 17:13:24 -05:00
parent f61c849501
commit 074d1081ce
1 changed files with 3 additions and 1 deletions

View File

@ -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'));