   gulp.src 'app/src/**/*.jade'
     .pipe jade
       pretty: true
-    .pipe gulp.dest 'tmp/templates'
+    .pipe gulp.dest 'build/templates'
 
 gulp.task 'templates', ['jade'], ->
-  gulp.src ['tmp/templates/**/*.html', '!tmp/templates/index.html']
+  gulp.src ['build/templates/**/*.html', '!build/templates/index.html']
     .pipe ngTemplates
       filename: 'templates.js'
       module: 'linkr'

  gulp.src('app/src/**/*.coffee')
    .pipe(coffee({bare: true})
    .on('error', gutil.log))
    .pipe(gulp.dest('tmp/js'))

gulp.task 'scripts', ['coffee'], ->
  gulp.src('tmp/js/app.js')
    .pipe(browserify({}))
    .pipe(gulp.dest('dist'))
    .pipe connect.reload()

path = require 'path'

gulp.task 'clean', ->
  del.sync [ 'build', 'dist' ]

gulp.task 'fonts', ->
  gulp.src('node_modules/bootstrap/fonts/*')
    .pipe gulp.dest('dist/fonts')

gulp.task 'copy', ['jade'], ->
  gulp.src('build/templates/index.html')
    .pipe gulp.dest('dist')
    .pipe connect.reload()

