I am trying to have cljsbuild auto recompile my unit tests (built from test-cljs) every time a file in my cljs-src dir has changed. This would be very useful for my setup with guard-livereload and jasmine - basically each time I save a file my unit test results are automatically refreshed in the browser.
However, with the current behavior of cljsbuild, I have to touch a test file before my changes in cljs-src become visible.
Of course, this would be fixed by Issue 108, but until multiple source paths are allowed in the cljs compiler, I'd propose a per-build option like :watch-dirs ["cljs-src"] to achieve this effect.
I could try implementing this myself (and probably will), but before starting I want make sure I didn't overlook another way to achieve the desired behavior.
Is this a duplicate of Issue #140?
I don't think there's any way to do this right now. I would gladly accept a clean patch that made it happen.
Okay, hadn't seen the other one - well this seems more tricky than I thought.
But since I am using some Ruby tools anyways, I have found another workaround, namely configuring guard-shell to touch one of the test files whenever my main.js has changed. Pretty dirty, but does the job for me xD