riot / cli

Riot.js command line tool
MIT License
46 stars 9 forks source link

write compilation errors to stderr #17

Closed moritzschepp closed 8 years ago

moritzschepp commented 8 years ago

I'm using riot 2.6.0 and the riot command outputs both compilation errors and success messages to stdout. For better integration in my build chain, it would be awesome if errors could go to stderr instead.

GianlucaGuarini commented 8 years ago

@moritzschepp good idea thanks for your feedback. May I know what's the advantage of using stderr in your build chain?

moritzschepp commented 8 years ago

Absolutely, I can even show you: https://github.com/dfk-paris/pb/blob/master/widgets/build.sh#L42

I'm currently working on this rails app, which serves as json api only. To compile the frontend during development, we run npm run watch which calls the above build.sh. There, we would like to run riot quietly (-s) but that also suppresses error messages. Instead, we could run it without -s but redirect stdout to /dev/null.

But as you can see, the feature request is rather low priority :)

moritzschepp commented 8 years ago

Thanks a lot, @GianlucaGuarini