 pak = JSON.parse(fs.readFileSync './package.json', 'utf8')
 port = 1111
 pluginScript = './src/coffeescript/notifyr.coffee'
-pluginDistDir = './dist'
+pluginBuildDir = './dist'
 pluginName = 'jquery.notifyr.js'
 pluginNameMin = 'jquery.notifyr.min.js'
 banner = "/*!\n

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

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

    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
