Kagami / gulp-ng-annotate

:pushpin: Add angularjs dependency injection annotations with ng-annotate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request: fail without exception on parse error

devm33 opened this issue · comments

gulp-ng-annotate is part of my watched build process which I leave running as I develop. Since I neurotically save every few strokes while I'm working I often save javascript files in broken states. This causes gulp-ng-annotate to throw an error at stream.js causing the whole watch process to exit.

I was wondering if there was another way to exit/abort when there ng-annotate errors without breaking the gulp watching process. Maybe I just don't know enough about gulp and this is something I can change in my gulpfile. Any and all help is much appreciated.

Thanks!

Hi. gulp-plumber plugin is created exactly for this purpose. Another way. See also: gulpjs/gulp#799 (comment)
Closing this but feel free to ask additional questions if something still unclear.