This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-07
Channels
- # adventofcode (114)
- # announcements (3)
- # aws (5)
- # babashka (62)
- # beginners (111)
- # calva (4)
- # cider (20)
- # clara (5)
- # clj-kondo (1)
- # cljs-dev (9)
- # clojure (255)
- # clojure-europe (75)
- # clojure-italy (10)
- # clojure-nl (3)
- # clojure-norway (5)
- # clojure-uk (6)
- # clojuredesign-podcast (5)
- # clojurescript (34)
- # community-development (28)
- # conjure (1)
- # cursive (3)
- # data-science (1)
- # datavis (1)
- # datomic (4)
- # figwheel-main (1)
- # fulcro (14)
- # graalvm (1)
- # graphql (8)
- # integrant (4)
- # introduce-yourself (2)
- # jobs (2)
- # juxt (4)
- # kaocha (2)
- # malli (6)
- # membrane-term (53)
- # mount (2)
- # nextjournal (2)
- # off-topic (27)
- # pathom (11)
- # polylith (3)
- # portal (11)
- # reagent (4)
- # reitit (4)
- # remote-jobs (1)
- # reveal (14)
- # shadow-cljs (22)
- # tools-deps (24)
- # vim (6)
- # xtdb (19)
Hello, I am having trouble building an uberjar with clojure.tools.build.api. Do you have an example of a build that includes ClojureScript, js, and css?
I compile all the clj, js into the target folder. Then the jar does seem to contain all the necessary files, but I just do not see the files being loaded into the browser when running the jar
that is not the issue since I can see all the compiled files in de jar. The clean happens before running the cljs build
Here is ahttps://gist.github.com/eelkevanfoeken/3ef0a6f4519f34956d63ecd0ef38137aof the build.clj
I also cannot find a single example of using this method of creating an uberjar that combines Clojure and ClojureScript
Does anyone know if it's possible in project A to reference a local project B as a local dependency of A while targeting an alias in the local project B?
There is a question here about it https://ask.clojure.org/index.php/7843/allow-specifying-aliases-coordinates-that-point-projects
Not sure if there's anything to learn here, but I ended up adding :paths ["."]
to my :build
alias so I could do -M:build
and start a REPL.
yeah, this is a known problem that has been nagging at me. eventually I will get around to tackling it seriously
Our "solution" to that is:
$ clj -M:build -i build.clj -r
(for a REPL that is specifically for running build tasks -- which is how I normally run them -- but I also have :build
on my primary development REPL command so I can develop and test build.clj
inside my editor -- using the editor's "load file" on build.clj
to get it loaded into the REPL)
My development REPL is started via:
SOCKET_REPL_PORT=5000 clojure -J-Dlog4j2.configurationFile=log4j2-sean.properties -M:rebel:classes:reflect:jedi-time:portal:everything:dev:test:runner:build:dev/repl