This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-05-16
Channels
- # announcements (22)
- # beginners (4)
- # biff (4)
- # cider (5)
- # clerk (3)
- # clojure (28)
- # clojure-chennai (1)
- # clojure-europe (23)
- # clojure-gamedev (7)
- # clojure-korea (5)
- # clojure-madison (3)
- # clojure-my (1)
- # clojure-nl (1)
- # clojure-norway (49)
- # clojure-sweden (7)
- # clojure-uk (4)
- # clojuredesign-podcast (14)
- # clojurescript (10)
- # clr (5)
- # cursive (4)
- # datascript (17)
- # datomic (2)
- # events (1)
- # garden (1)
- # introduce-yourself (2)
- # jobs-discuss (14)
- # lsp (23)
- # malli (14)
- # missionary (9)
- # off-topic (109)
- # overtone (7)
- # polylith (5)
- # releases (5)
- # shadow-cljs (7)
- # sql (13)
- # testing (30)
- # xtdb (10)
- # yamlscript (44)
I have a shadow-cljs project with a single build. I want to showcase my UI components with portfolio, and thought I would add another module to the same build - is this the correct way to use modules? Or should I define a separate build? With the extra module, shadow fails because there are no dependencies and it doesn’t know which one is the main module. There are no dependencies between my two modules, I just want to separate output files.
then is must be a separate build. separate modules otherwise are for code splitting, as in splitting one file into many, not adding things to a build.
make sure to use a different :output-dir
. otherwise the builds will conflict with each other.
I've a test project on GitHub that has separate builds setup for dev, portfolio and unit test using shadow-cljs and yarn if that's of any help as an example https://github.com/cormacc/cljserial The builds are on separate ports so you can run them simultaneously - there's a 'yarn all' target that does that