Fork me on GitHub
#polylith
<
2024-01-19
>
Cameron01:01:52

Howdy, big polylith fan here 馃檪 If I have two repos A and B and B is a polylith workspace - I want to pull in all or parts of B as a library into A using deps.edn's git url / sha feature, is this possible?

seancorfield02:01:04

Yes. Create a project in B that represents the "library" that you want to depend on and then A can have a git-dep on the whole B repo with :deps/root pointing to "projects/the-library"

馃敟 1
seancorfield02:01:15

That's how my external test runner for Polylith works: https://github.com/seancorfield/polylith-external-test-runner

seancorfield02:01:13

(it happens to have a CLI base as well but that's internal to the runner -- the runner itself is a library)

Cameron02:01:42

Nice, thanks a bunch @U04V70XH6, will give that a try 馃檪

Cameron19:01:26

Is it possible to nest components in sub-directories instead of having a flat directory of components? Seems like it would be, I've never tried it though.

Cameron19:01:30

Ah, after some searching in this channel I see that it is primarily just a flat structure in the components directory 馃憤

馃憤 1
馃槱 1
Mark Sto15:02:16

Not for too long, thanks to an upcoming support for workspace(s) nesting.

Cameron19:01:30

Ah, after some searching in this channel I see that it is primarily just a flat structure in the components directory 馃憤

馃憤 1
馃槱 1
rjsheperd22:01:01

Hiya folks. Wanted to see if anyone had examples of using the https://github.com/imrekoszo/polylith-kaocha running both CLJ and CLJS tests with a headless browser?

imre09:01:40

Hey there. I have no recent experience with cljs and never used it with kaocha (or polylith). But if this is doable in a normal project then it should be doable in p-k as long as polylith supports cljs to some extent. P-k is all about passing the correct classpath and kaocha config to kaocha invocations.

rjsheperd22:01:44

Thanks, @U08BJGV6E. Is there an example Koacha config that you've seen that allows for both CLJ/CLJS testing?

imre23:01:21

I've never used kaocha with cljs I'm afraid