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

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

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


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

gulp.task 'generate_report', ->
  command = './node_modules/mocha/bin/mocha -r blanket
    --compilers coffee:coffee-script/register
    --reporter mocha-lcov-reporter > lcov.report'
  run(command).exec()

gulp.task 'coveralls', ['generate_report'], ->
  gulp.src 'lcov.report'
    .pipe coveralls()
    .pipe exit()

gulp.task 'travis', ['mocha', 'coveralls'], ->


gulp.task 'default', ['clean','build'], ->
