Fork me on GitHub
#clojurescript
<
2019-05-26
>
vemv09:05:39

Any cool templates (or real projects) for cljs pure libraries (no webapps) with a great development/testing experience? I seek e.g. source-mapping and a test-on-save workflow which leverages the analyzer cache (my current test-on-save is quite dumb: git ls-files | grep clj | entr -s "clear; $(which lein) do clean, cljsbuild once test && clear && $(which node) target/out/tests.js") My cljs knowledge has rusted a little, but from memory, most stuff out there assumes a browser

thheller09:05:50

:node-test target with :autorun true + shadow-cljs watch test. see https://shadow-cljs.github.io/docs/UsersGuide.html#target-node-test

vemv10:05:27

Thanks! Will try out.

alpox09:05:31

Hi all! I have a question concerning the organisation of web-projects. Is it in clojure a convention to put the frontend and backend into one repository with shared src folder? If yes, what are the pros? Are there cons? (In comparison with 2 seperate repositories)

penryu10:05:40

Assuming the backend speaks only or primarily to the frontend, keeping them in the same repo offers a number of benefits. One of my favorite being to keep the interface between the two in sync.

alpox10:05:33

I understand. I believe there might be some advantage in keeping a shared spec for data conformity?

penryu10:05:58

In a more complex site, there could also be arguments for keeping them separate. But I'd probably keep them together until those arguments became an issue.

alpox10:05:32

Sounds reasonable. Thank you for your arguments and time!

Tom Le10:05:34

Is there any open-sourcing production written by cljs?

vemv11:05:04

I don't understand the question

Tom Le03:05:20

I means I would like to find some projects that open-sourcing , for Example: https://github.com/circleci/frontend

vemv08:05:42

ok, I think you meant open-sourcing

Tom Le05:05:52

Yep sorry my typo

bfay19:05:04

Umm... what sort of a crazy state must I be in if I'm seeing a "Compile Warning, can't take value of macro cljs.core/or" for this code?

(let [a 1 b 2]
  (cond (or a b)
        "why am i getting a warning here?"))

bfay19:05:01

(of course, if I change that to (or 1 b) everything is inexplicably fine)

thheller19:05:02

@bfay I think thats a known issue in figwheel? IIRC it was fixed but not sure if release yet

bfay19:05:41

Oh, okay! I am using figwheel-main so that would make a lot of sense