I'm trying to use the gulp-mocha module
<https://github.com/sindresorhus/gulp-mocha> 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.
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/ce5b9e57-0b35-4809-b2f5-8e8d349a8e6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.