 # Build Tasks
 
 
-gulp.task 'styles', ->
+gulp.task 'styles', ['clean'], ->
 
   if theme
     resetStyles = require './src/themes/reset.includes.coffee'

    .pipe gulp.dest "#{buildDir}/css"


gulp.task 'libs', ->

  gulp.src LIBS
    # INVESTIGATE: this somehow breaks jQuery - SY

  exec "cd ./src;sh exporter.sh > entry.coffee; cd .."


gulp.task 'coffee', ['export', 'clean'], ->

  gulpBrowserify
      entries : ENTRY_PATH
