     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

    ).on('error', gutil.log))
    .pipe(rename(pluginName))
    .pipe(header(banner))
    .pipe(gulp.dest(pluginDistDir))

gulp.task 'refresh', (callback) ->
  run(
    'build',
    'browserify',
    'html',


# gulp tasks
gulp.task 'server', ->
  connect.server
    root: [
      'example'
