Gulp returns 0 when tasks fail

后端 未结 6 1301
庸人自扰
庸人自扰 2021-01-01 09:09

I\'m using Gulp in my small project in order to run tests and lint my code. When any of those tasks fail, Gulp always exits with return code 0. If I run jshint by hand, it e

6条回答
  •  星月不相逢
    2021-01-01 09:45

    A fix has been introduced in this commit.

    It works something like this:

    gulp.src("src/**/*.js")
      .pipe(jshint())
      .pipe(jshint.reporter("default"))
      .pipe(jshint.reporter("fail"));
    

    I have been using it on circleci and it works a treat!

提交回复
热议问题