Example of improper exit code of node/gulp task if there is pipe()
after gulp-less
usage.
-
Run
npm install
to setup project. -
Run
npm run correct ; echo $?
to see that node/gulp task has exited with exit code1
because of invalid less file. -
Run
npm run wrong ; echo $?
to see that node/gulp task has exited with exit code0
despite the fact that less file is invalid.
Same happens when using ./node_modules/.bin/gulp
instead of npm run
.
node 5.11.0
npm 3.8.6
gulp 3.9.1
gulp-less 3.1.0