 gulp = require('gulp')
 coffee = require('gulp-coffee')
+require 'coffee-script/register'
 concat = require('gulp-concat')
 uglify = require 'gulp-uglify'
 sourcemaps = require('gulp-sourcemaps')

gulp.task 'test', ['mocha'], ->
  gulp.watch files.all, ['mocha']

gulp.task 'coverage', ->
  gulp.src files.lib, read: false
    .pipe mocha
      require: 'coffee-script'
      ui: 'bdd'
      reporter: 'html-cov'
      compilers:
        coffee: 'coffee-script/register'
    .on 'error', notify.onError 'test error'
gulp.task 'default', ['clean','build'], ->

coffeeify = require 'gulp-coffeeify'
exit = require 'gulp-exit'
notify = require 'gulp-notify'
coveralls = require 'gulp-coveralls'

gulp.task 'default', ['build_browser']

