gulp-mocha how to pass the compilers flag?

后端 未结 6 1104
[愿得一人]
[愿得一人] 2021-02-14 09:28

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

6条回答
  •  执念已碎
    2021-02-14 10:22

    I just noticed the docs at the bottom state -

    For CoffeeScript support, add require('coffee-script') with CoffeeScript 1.6- or require('coffee-script/register') with CoffeeScript 1.7+.

    I added a require statement for my own compiler at the top of my gulp file require('./my_compiler'); and this seemed to work.

提交回复
热议问题