Skip to content

nkoder/example-of-gulp-less-zero-exit-on-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example-of-gulp-less-zero-exit-on-error

Example of improper exit code of node/gulp task if there is pipe() after gulp-less usage.

  1. Run npm install to setup project.

  2. Run npm run correct ; echo $? to see that node/gulp task has exited with exit code 1 because of invalid less file.

  3. Run npm run wrong ; echo $? to see that node/gulp task has exited with exit code 0 despite the fact that less file is invalid.

Same happens when using ./node_modules/.bin/gulp instead of npm run.

versions

  • node 5.11.0
  • npm 3.8.6
  • gulp 3.9.1
  • gulp-less 3.1.0

Releases

No releases published

Packages

No packages published