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

View File

@ -14,7 +14,7 @@ gulp.task('default', ['server'], function() {
gulp.watch('./src/**/*.js', ['browserify']); gulp.watch('./src/**/*.js', ['browserify']);
}); });
gulp.task('server', ['static', 'markup', 'compass', 'browserify'], function() { gulp.task('server', ['build'], function() {
watch('./build/**/*', { name: 'Server' }) watch('./build/**/*', { name: 'Server' })
.pipe(connect.reload()); .pipe(connect.reload());
return connect.server({ 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() { gulp.task('static', function() {
return gulp.src('./src/**/*.!(html|scss|js)') return gulp.src('./src/**/*.!(html|scss|js)')
.pipe(gulp.dest('./build')); .pipe(gulp.dest('./build'));