This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-12
Channels
- # announcements (1)
- # babashka (79)
- # beginners (165)
- # calva (29)
- # cider (20)
- # clara (3)
- # cljdoc (1)
- # cljs-dev (52)
- # clojure (42)
- # clojure-chicago (5)
- # clojure-europe (48)
- # clojure-germany (1)
- # clojure-italy (4)
- # clojure-nl (2)
- # clojure-spec (10)
- # clojure-uk (19)
- # clojurescript (50)
- # clojureverse-ops (5)
- # conjure (8)
- # datomic (16)
- # depstar (2)
- # events (1)
- # figwheel-main (23)
- # fulcro (26)
- # girouette (41)
- # graalvm (9)
- # heroku (3)
- # honeysql (10)
- # jackdaw (20)
- # lambdaisland (6)
- # lein-figwheel (1)
- # lsp (34)
- # malli (7)
- # meander (3)
- # music (1)
- # off-topic (14)
- # polylith (7)
- # re-frame (14)
- # reitit (8)
- # reveal (15)
- # ring (3)
- # schema (1)
- # sci (15)
- # shadow-cljs (42)
- # spacemacs (1)
- # startup-in-a-month (12)
- # tools-deps (59)
- # vim (1)
- # xtdb (27)
@allandaviesza wrote some code to rename all the namespaces. Not sure how portable it is, but he can comment.
Hi, I'm new to both, deps.edn and polylith. I wonder how a component
can/should be standalone in terms of a config.edn
. I like to use
(io/resource "config.edn")
whereby "config.edn"
is placed in the
components resources folder. This folder is attached to the workspace
deps.edn
:dev
extra-path
as suggested. However, "config.edn"
can not be accessed by the io/resource
function. I've seen that
all(?) resources folders of the real-world-example are empty. Is it a
bad idea to provide separate configuration files for each component as
resources? Many thanks in advance.
Hi @ULNQR8F2S. The RealWorld example app doesn’t show how to use resources, but the Polylith codebase itself does, so let’s use that code as an example. The https://github.com/polyfy/polylith/tree/master/components/creator component in the Polylith project has a logo.png
image in its https://github.com/polyfy/polylith/tree/master/components/creator/resources/creator directory, and https://github.com/polyfy/polylith/blob/76936c752fb5b729c216b23d92c8a8d71cfdc92f/components/creator/src/polylith/clj/core/creator/workspace.clj#L78 you can see how it’s used from the workspace
namespace within the component. Then the resources directory of this component is included in the development’s deps.edn
file https://github.com/polyfy/polylith/blob/76936c752fb5b729c216b23d92c8a8d71cfdc92f/deps.edn#L26, and it’s also included in the deps.edn
files for all other projects, like the poly
project https://github.com/polyfy/polylith/blob/76936c752fb5b729c216b23d92c8a8d71cfdc92f/projects/poly/deps.edn#L5. Hope this can be of some help.
Jup, works! Thank you @U1G0HH87L and many greetings to the fantastic polylith team from Berlin!
Great! 🙂 And by the way, the members of the Polylith team live in Stockholm, Sweden (or close to it)!
I tried to send greetings to the team from Berlin to Stockholm (seems I am a grammar noob too) 😅
Ahh, cool, thanks for the greetings! 😃