@nonrecursive: cljsjs generates a deps.cljs
file for each package. The deps.cljs
is set up as specified by CLJS here: https://github.com/clojure/clojurescript/wiki/Packaging-Foreign-Dependencies. The deps-cljs
task (https://github.com/cljsjs/boot-cljsjs/blob/master/src/cljsjs/boot_cljsjs/packaging.clj#L95) takes the first .js
file that it finds and puts it as the :file
key in deps.cljs
, and the first .min.js
file that it finds is under the :file-min
key. The CLJS compiler uses the :file-min
file only under :advanced and :simple optimizations (https://github.com/clojure/clojurescript/blob/6ba817065113313a15b0f027c6491e0bc732f3e9/src/main/clojure/cljs/closure.clj#L1713)
let me know if that’s not clear
to your actual question. non-minified javascript goes into the development
dir and minified into the production
dir, but I don’t actually know why those dirs were chosen
@adamfrey that’s super helpful, thanks!