4 ms·
Did you come up with a solution for recompiling the clojurescript files only when cljs and cljc files were changed? The watch task fires whenever a file in the
by johnwalker 11y ago
Did you come up with a solution for recompiling the clojurescript files only when cljs and cljc files were changed? The watch task fires whenever a file in the resources or src directories changes.
- Borkdude 11y agoNo I haven't. Is this a big issue? I guess it would be nice if watch could take a filter. Since cljs uses incremental compilation it shouldn't do anything if non-cljs files changed.
- jjmojojjmojo 11y agoYou can put a sift task before the watch.
- michaniskin 11y agoTasks in Boot cache their own products, so while the watcher task fires the rest of the pipeline whenever a source file of any kind changes, each task is smart enough to use its own cached compiled files. This is because only the tasks themselves can ever really know the relationship between source files and the compiled artifacts they produce. So in practice things are only recompiled when they need to be recompiled. Even though the watcher task is firing, no real work is done unless it needs to be done.