boot-clj / boot-cljs

Boot task to compile ClojureScript programs.
Eclipse Public License 1.0
176 stars 40 forks source link

Implement cljs.closure/watch logic for rebuilds #194

Open Deraen opened 6 years ago

Deraen commented 6 years ago

ClojureScript watch no longer (since Feb 2015, after Boot-cljs was originally written) calls build each time any file is changed. Only if .cljs, .cljc, .clj or .js file is changed, compiler is called.

https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/closure.clj#L3096-L3100 https://github.com/clojure/clojurescript/commit/0db90e6898434c1719fc2bfc6ab9cf741dde4cf2

Boot-cljs should copy this behavior, to optimize cases where only .css, .less etc. file is changed.