Fork me on GitHub
#cljsjs
<
2016-05-02
>
adamfrey02:05:32

@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)

adamfrey02:05:47

let me know if that’s not clear

adamfrey02:05:23

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

nonrecursive02:05:33

@adamfrey that’s super helpful, thanks!