     port: port
     livereload: true
   log("Examples can be viewed at http://localhost:#{port}")
+
+gulp.task 'clean', ->
+  gulp
+    .src('build', {read: false})
+    .pipe(clean())
+
+gulp.task 'clean', ->
+  clean [pluginBuildDir]
 
 gulp.task 'html', ->
   gulp

    .pipe(gulp.dest('./example/commonjs/'))

gulp.task 'build', ->
  gutil.log gutil.colors.red('compiling coffeescript...')
  gulp
    .src(pluginScript)
    .pipe(coffee(

gutil = require('gulp-util')
connect = require('gulp-connect')
coffee = require('gulp-coffee')
rename = require('gulp-rename')
source = require('vinyl-source-stream')
browserify = require('browserify')
clean = require('del')
run = require('run-sequence')
uglify = require('gulp-uglifyjs')
header = require('gulp-header')
