This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-20
Channels
- # aws-lambda (7)
- # beginners (113)
- # boot (17)
- # cider (4)
- # cljs-dev (4)
- # clojure (65)
- # clojure-greece (3)
- # clojure-italy (7)
- # clojure-russia (10)
- # clojure-spec (37)
- # clojure-uk (20)
- # clojurescript (76)
- # community-development (2)
- # cursive (24)
- # data-science (9)
- # datomic (9)
- # emacs (1)
- # fulcro (2)
- # graphql (11)
- # hoplon (13)
- # juxt (15)
- # leiningen (1)
- # off-topic (36)
- # om (1)
- # onyx (59)
- # parinfer (41)
- # pedestal (7)
- # portkey (60)
- # protorepl (4)
- # re-frame (345)
- # reagent (7)
- # ring-swagger (16)
- # shadow-cljs (121)
- # spacemacs (30)
- # sql (6)
- # uncomplicate (2)
- # unrepl (9)
- # vim (13)
- # yada (2)
I’m attempting to set up multiple js file outputs from boot. I’m using a main.cljs.edn
file and would like to add another other.cljs.edn
file with a different require
. I’m assuming I need to set a different asset-path
in other.cljs.edn
… but I’m getting js errors from goog.
GET net::ERR_ABORTED
(anonymous) @ other.js:3
Is there an example project I can take a look at where someone is doing this?https://github.com/YurySolovyov/retweet-client/blob/master/build.boot like here, hope it helps
@yury.solovyov thank you
To be fair, this approach has at least 1 downside I can think of - code common for both ids is not extracted into common file. This could be possible by using :modules, but it is advanced feature and some tooling it not yet ready for it
just so you know
In my case, ids will barely have anything common so it is acceptable for me
Ah, that’s good to know. I had read about :modules, but haven’t seen it used yet. I think I would be okay with not extracting common code for now.
@mudphone you need different :output-to's
Does anyone know of a simple way to serve up the cljs files in the out
directory via a webserver in development? I'm sure I could set up compojure or something, but I'm wondering if there's a quick and easy way to do it with something like boot-jetty.
I ask because I need to serve them to my client so I can use cljs.js/eval-str
(which wants to be able to load source files). Once deployed, this would all live statically on S3.
(I'm still wrapping my head around boot if you can't tell)
Take a look at boot-http
See the serve call
Ahh, that might do what I need--thanks @yury.solovyov!