 sass = require 'gulp-sass'
 watch = require 'gulp-watch'
 
+#webserver, quite optional
+gulp.task 'tornado', shell.task('foreman start web')
 
-gulp.task 'tornado', shell.task('foreman start web')
+# copy some static files
 gulp.task 'copy', () ->
   gulp.src('./web/src/index.html')
   .pipe(gulp.dest('./web/dist/'))

    .pipe(watch((files) ->
      files.pipe(gulp.dest('./web/dist/'))
    ))
gulp.task 'sass', () ->
  gulp.src('./web/src/sass/*.scss')
    .pipe(sass())

    .pipe(watch((files) ->
      return files.pipe(sass()).pipe(gulp.dest('./web/dist/css'))
    ))


#compile js
gulp.task 'browserify', () ->
  b = browserify({
    entries: './web/src/cs/dream.coffee'
