Tweaking gulpfile to allow quick rebuilds of site
This commit is contained in:
parent
f61c849501
commit
074d1081ce
@ -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'));
|
||||
|
Loading…
Reference in New Issue
Block a user