I'm using 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 great, and everytime I violate my jshint
I get something like this:
Users/me/Sites/project/client/scripts/app.js: line 11, col 23, Missing semicolon.
And the build stops.
However, I'd kinda like the build to continue even if I forget a semicolon. Right now, any jshint
error stops the build from processing. I like to check if my code is up to par, but it shouldn't prevent everything from building if I have an unused argument in a function.
Help?