duojs / duo

A next-generation package manager for the front-end
3.42k stars 118 forks source link

Keep watching after compiling errors #460

Open lucasmotta opened 9 years ago

lucasmotta commented 9 years ago

Right now if there's any errors on the compiler, the entire build will crash and stop. Is there any way to keep the watch task running even after errors? Something similar to watchify would be perfect, so you don't have to re-run the watch command whenever you break something.

This is the command I'm using at the moment:

duo -w -u duo-ractive -r source/js app.js -o ../../public/js
jruddell commented 9 years ago

I was having this issue and a few watch issues... so I pulled in a different repository to do the watching for me.. its worked perfectly! It watches all your files, prints out errors and continues to watch / call the duo build when there are errors, incase you want to try it out. Sane Docs

matthewmueller commented 9 years ago

Oh that's what we're using actually. It looks like it's been updated recently. Here's where we do the watching now: https://github.com/duojs/watch/blob/master/package.json#L14

lucasmotta commented 9 years ago

Yeah @johnruddell, I'm doing this at the moment, but the build is not as fast, because none of the files get cached on the new build :(