I am using JsHint in a Makefile for a project I am working on and the errors that are reported are not being noticed by Make. Is there a way to capture the error and not hard exit the execution of Make? Below is a sample Makefile:
all: css js
css:
compass compile
hint:
jshint js/*.js
js: hint
uglify js/*.js
So, for example, the hint
target is showing errors but is doing a hard exit and not informing Make that it exited.
I might not be using the correct terms for things and I apologize.
Use a hyphen before the recipe…
hint:
-jshint js/*.js
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With