 gulp         = require("gulp")
 coffee       = require("gulp-coffee")
 less         = require("gulp-less")
-bump         = require("gulp-bump")
 clean        = require("gulp-clean")
 watch        = require("gulp-watch")
 exec         = require("gulp-exec")

  )
)

gulp.task("watch:version", ->
  return bumpVersion(watch(glob : paths.src.version, name : "Version-Watcher"))
)


gulp.task("build:scripts", (callback) ->
  runSequence("compile:scripts:production", "combine:scripts:production", "clean:tmp", callback)
)
gulp.task("build:styles", ["compile:styles"])
gulp.task("build:version", ->
  return bumpVersion(gulp.src(paths.src.version))
)

gulp.task("build", (callback) ->
  runSequence(["install:bower", "clean:build"], ["build:scripts", "build:styles"], callback)

    css : "app/assets/stylesheets/main.less"
    css_watch : "app/assets/stylesheets/**/*.less"
    js : "app/assets/javascripts/**/*.{coffee,js}"
  dest :
    js_tmp : "public/javascripts_tmp"
    js : "public/javascripts"
    css : "public/stylesheets"


logger = ->
