 gulp       = require 'gulp'
 gutil      = require 'gulp-util'
 mocha      = require 'gulp-mocha'
+coveralls  = require 'gulp-coveralls'
+run        = require 'gulp-run'
 coffee     = require 'gulp-coffee'
 browserify = require 'browserify'
 coffeeify  = require 'coffeeify'

    .pipe mocha {
      reporter: 'spec'
      globals: {
        should: require('should')
        coffee: require('coffee-script/register')
        stack: Error.stackTraceLimit = 3
      }
    }

gulp.task 'testwatch', ['test', 'default'], ->
  gulp.watch ['./src/*', './test/*'], ['test', 'default']

NAME = 'gerberToSvg'

# source code and destination code locations
SRC = './src/*.coffee'
LIBDIR = './lib'

gulp.task 'default', [ 'standalone' ], ->
  gulp.src SRC
    .pipe coffee()
      .on 'error', gutil.log
    .pipe gulp.dest LIBDIR
