 TEST_PATH     = ['./src/**/*.test.coffee']
 LIBS          = require './src/lib.includes.coffee'
 
-buildDir      = argv.outputDir ? 'build'
-version       = if argv.buildVersion then "#{argv.buildVersion}." else ''
-useLiveReload = !!argv.liveReload
-useUglify     = !!argv.uglify
-useMinify     = !!(argv.minify ? yes)
-karmaAction   = 'watch'
-buildDocs     = !!argv.docs
-buildPlay     = !!argv.play
-
 # Helpers
+
+checkParam = (param) -> !(param in ['0', 0, no, 'false', 'no', 'off', '', undefined, null])
 
 log = (color, message) ->
   gutil.log gutil.colors[color] message

  b.bundle bundleOptions

watchLogger = (color, watcher) ->
  watcher.on 'change', (event) ->
    log color, "file #{event.path} was #{event.type}"

liveReload = (stream)-> stream.pipe livereload()  if useLiveReload


# Build Tasks

    .pipe rename "kd.libs.#{version}js"
    .pipe gulp.dest 'test'
    .pipe gulp.dest "#{buildDir}/js"


gulp.task 'export', ->
