 
 gulp.task 'build', [ 
   'build-libs'
-  'build-scripts'
   'build-templates'
   'build-styles'
 ]

      'custom/*.*'
    ]

gulp.task 'build-scripts', ->
  gulp.src [ 'src/**/*.coffee' ]
    .pipe ignore.exclude /tests.coffee$/
    .pipe coffee bare: no
    .pipe concat 'flow.js'
    .pipe expand 'desugar.yml'
    .pipe header '"use strict";(function(){ var lodash = window._; window.Flow={}; window.H2O={};'
    .pipe footer '}).call(this);'
    .pipe gulp.dest config.dir.deploy + '/js/'

gulp.task 'build-tests', ->
  gulp.src [ 'src/**/*.coffee' ]
    .pipe coffee bare: no

    .pipe gulp.dest config.dir.deploy + '/custom/'

gulp.task 'watch', ->
  gulp.watch 'src/**/*.jade', [ 'build-templates' ]
  gulp.watch 'src/**/*.styl', [ 'build-styles' ]

