var gulp =  require('gulp');
var pug =  require('gulp-pug');
var stylus =  require('gulp-stylus');

gulp.task('pug', function(){
  gulp.src('./src/*.pug')
      .pipe(pug())
      .pipe(gulp.dest('./out'));
});


gulp.task('stylus', function(){
  gulp.src('./src/assets/styles/*.styl')
      .pipe(stylus())
      .pipe(gulp.dest('./out/assets/styles'));
});

gulp.task('watch', function(){
  gulp.watch(['./src/*.pug'], ['pug']);
  gulp.watch(['./src/assets/styles/*.styl'], ['stylus']);
});

gulp.task('build', ['pug','stylus']);

@@ -91,16 +91,56 @@
 tylus');
+%0Avar connect =  require('gulp-connect');
 %0A%0Agulp.t
@@ -238,16 +238,46 @@
 ./out'))
+%0A      .pipe(connect.reload())
 ;%0A%7D);%0A%0A%0A
@@ -416,16 +416,46 @@
 tyles'))
+%0A      .pipe(connect.reload())
 ;%0A%7D);%0A%0Ag
@@ -602,30 +602,186 @@
 sk('
-build', %5B'pug','stylus
+serve', function()%7B%0A  connect.server(%7B%0A    root: './out',%0A    livereload: true,%0A    port: 3210%0A  %7D);%0A%7D);%0A%0Agulp.task('build', %5B'pug','stylus'%5D);%0Agulp.task('server',%5B'serve','watch
 '%5D);

add task to create a static server and livereload #3