This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-12
Channels
- # aleph (1)
- # beginners (81)
- # boot (20)
- # cider (46)
- # cljs-dev (6)
- # cljsjs (6)
- # cljsrn (8)
- # clojars (2)
- # clojure (104)
- # clojure-berlin (3)
- # clojure-italy (4)
- # clojure-losangeles (2)
- # clojure-nl (16)
- # clojure-spec (16)
- # clojure-uk (28)
- # clojurescript (88)
- # core-logic (31)
- # cursive (8)
- # data-science (3)
- # datascript (1)
- # datomic (95)
- # docs (1)
- # emacs (6)
- # figwheel-main (24)
- # fulcro (106)
- # graphql (5)
- # hyperfiddle (2)
- # midje (2)
- # nrepl (1)
- # off-topic (14)
- # om-next (1)
- # parinfer (2)
- # pedestal (26)
- # portkey (2)
- # re-frame (11)
- # reagent (27)
- # ring (6)
- # rum (4)
- # shadow-cljs (33)
- # spacemacs (10)
- # specter (53)
- # tools-deps (17)
- # vim (31)
Does anyone know how to:
- compile some clojurescript
- include the files into an uberjar? as resources to serve them
It looks like I have to use sift
but I cannot figure out how exactly.
I use this https://stackoverflow.com/a/22363700/1327651 to see the files in the uberjar in case it matters
@nha probably less focused than you expected, but last time I checked this was a great learning resource on boot + clojurescript: https://github.com/magomimmo/modern-cljs/tree/master/doc/second-edition
here's an example (see build task): https://github.com/relembra/relembra/blob/master/build.boot
again, sorry it probably has lots of stuff you don't care about (and make sure you enable optimizations for production builds)

so when you do java -jar target/project.jar
(or similar), you are able to serve the compiled files?
https://relembra.estevo.eu/ has a DNS error for me btw @euccastro (not that it matters for me to try building locally)
thanks @nha. yeah, the README is outdated and the site is currently down. I run it in a raspberry Pi setup at a place I don't currently have physical access to, and it needs a hard cycle
this is how I access the js output https://github.com/relembra/relembra/blob/master/src/clj/relembra/core.clj#L134
and I have this voodoo which I forget the reason of, but that's what it took for it to work both in the dev
task (running locally from source) and in the uberjar: https://github.com/relembra/relembra/blob/master/src/clj/relembra/core.clj#L152
Anyone recently deployed a Clojure app to Heroku by using boot-clj and the heroku/jvm buildpack?