 
 gulp.task 'server', ['watch'], ->
   connect.server
-    root: target
+    root: targets.gulp
     port: 8888
     livereload: true
 
-gulp.task 'clean', (cb) -> del target, cb
+gulp.task 'clean', (cb) -> del targets.gulp, cb

        'bower_components/ngstorage/ngStorage.min.js'
      ])
      .pipe(concat('lib.js'))
      .pipe gulp.dest(target)
    gulp.src([
        'bower_components/bootstrap/dist/**/*'
      ])
      .pipe gulp.dest(target)

gulp.task 'coffee', ->
  gulp.src(sources.coffee)

    .pipe(ngmin())
    .pipe(uglify())
    .pipe(concat('app.js'))
    .pipe(gulp.dest(targets.gulp))
    .pipe(gulp.dest(targets.appengineDevServer))

gulp.task 'less', ->
  gulp.src(sources.less)
    .pipe(less())
    .pipe(concat('app.css'))
    .pipe(gulp.dest(targets.gulp))
    .pipe(gulp.dest(targets.appengineDevServer))

gulp.task 'static', ->
  gulp.src(sources.static)
    .pipe(gulp.dest(targets.gulp))
    .pipe(gulp.dest(targets.appengineDevServer))

gulp.task 'default', ['clean'], ->
  gulp.start 'bower', 'coffee', 'less', 'static'
