I use Gulp with Browserify and Hintify . The standard way to catch errors seems to be something like:
browserify({ entries: 'app.js', transform: [ // Some other transforms plugins.hintify ] // A bunch of other settings }).bundle() // Error handling .on('error', function(error) { util.beep(); // Util is gulp-util util.log(error); this.emit('end'); }) .pipe(...)
This works fine, and every time I break my jshint , I get something like this:
Users/me/Sites/project/client/scripts/app.js: line 11, col 23, Missing semicolon.
And the assembly stops.
However, I would like the build to continue even if I forgot the semicolon. Currently, any jshint error stops the build from processing. I like to check if my code matches the parameter, but it should not interfere with everything build if I have an unused argument in the function.
reference
jshint gulp browserify
Laust deleuran
source share