   gulp.src HTMLS
     .pipe cond isRelease, minifyHTML {empty:true, cdata: true}
     .pipe cond (not isRelease), header reload_script, {}
-    .pipe (gulp.dest outputdir)
+    .pipe (gulp.dest out())
     .pipe (livereload server)
 
 gulp.task 'image', ->
     gulp.src IMAGES
         .pipe minImage({progressive:true})
-        .pipe gulp.dest (path.join outputdir, 'img')
+        .pipe gulp.dest (out 'img')
 
 gulp.task 'bower', ->
 #  bower()
 #    .pipe cond isRelease, uglify({preserveComments:'some'})
 #    .pipe flatten()
-#    .pipe (gulp.dest (path.join outputdir, 'lib'))
+#    .pipe (gulp.dest (out 'lib'))
 #    .pipe (livereload server)
 
 gulp.task 'copy', ->
   gulp.src 'third_party/**/*.js'
     .pipe cond isRelease, uglify({preserveComments:'some'})
-    .pipe (gulp.dest 'app/lib')
+    .pipe (gulp.dest (out 'lib'))
     .pipe (livereload server)
   gulp.src 'data/*.gexf'
-    .pipe (gulp.dest 'app/data')
+    .pipe (gulp.dest (out 'data'))
     
 gulp.task 'watch', ->
   server.listen 35729, (err) ->

HTMLS    = ['html/*.html']
IMAGES   = ['img/*.jpg', 'img/*.png', 'img/*.gif']



# compile

    .pipe clean()

gulp.task 'clean:out', ->
  gulp.src [out 'data', out 'css', out 'lib', out '*.html']
    .pipe clean()


