This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-05-02
Channels
- # admin-announcements (4)
- # aleph (10)
- # arachne (1)
- # beginners (66)
- # boot (19)
- # cider (6)
- # cljs-edn (2)
- # cljs-site (32)
- # cljsjs (4)
- # cljsrn (32)
- # clojure (116)
- # clojure-austin (6)
- # clojure-belgium (2)
- # clojure-dusseldorf (1)
- # clojure-russia (16)
- # clojure-uk (5)
- # clojurescript (178)
- # community-development (2)
- # cursive (28)
- # datascript (16)
- # datomic (16)
- # dirac (13)
- # editors (2)
- # emacs (1)
- # error-message-catalog (30)
- # events (3)
- # garden (2)
- # hoplon (27)
- # jobs (4)
- # ldnclj (4)
- # liberator (3)
- # off-topic (6)
- # om (49)
- # onyx (24)
- # parinfer (9)
- # re-frame (59)
- # reagent (46)
- # remote-jobs (1)
- # rethinkdb (4)
- # rum (2)
- # slack-help (11)
- # untangled (13)
@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)
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!