Adding a useful default task

This commit is contained in:
Jeff Avallone 2014-11-23 12:31:52 -05:00
parent 5a99aaa571
commit 3dacc41880
1 changed files with 3 additions and 3 deletions

View File

@ -3,11 +3,11 @@ var gulp = require('gulp'),
connect = require('gulp-connect'),
watch = require('gulp-watch');
gulp.task('default', function() {
console.log('Default task');
gulp.task('default', ['server'], function() {
gulp.watch('./src/**/*.html', ['markup']);
});
gulp.task('server', function() {
gulp.task('server', ['markup'], function() {
watch('./build/**/*', { name: 'Server' })
.pipe(connect.reload());
return connect.server({