I'm trying to use the gulp-mocha module but can't figure out a good way to pass over the compilers flag. Is there a way to include this in my gulp task? Maybe in a separate pipe somehow?
Example if running mocha from command line (works fine)mocha --compilers .:my_compiler.js test/**/*.js
Example if using gulp-mocha (but where can I specify a compiler)?
gulp.task('test', function () {
gulp.src(["test/**/*.js"], {
read: false
})
.pipe(mocha({
reporter: 'spec'
}))
.pipe(exit());
});I don't see a compilers option under the gulp-mocha plugin, so I'm thinking I need to somehow add the compilers by adding the text somehow through a pipe? Have no idea how to do that however.
require('coffee-script') with CoffeeScript 1.6- or require('coffee-script/register') with CoffeeScript 1.7+.