porkbuns/shmile

View on GitHub
gulpfile.js

Summary

Maintainability
A
0 mins
Test Coverage
var gulp = require('gulp');
var mocha = require('gulp-spawn-mocha');

gulp.task("test", function() {
  return test()
});

gulp.task("default", function() {
  gulp.start('test');
});

gulp.task("watch", function() {
  gulp.watch("test/*", test);
});

var test = function() {
  return gulp.src(["test/**/*.coffee"]).pipe(mocha({
    bin: "node_modules/.bin/mocha",
    reporter: "spec",
    compilers: "coffee:coffee-script/register"
  })).on("error", console.warn.bind(console));
};