I saw that and enjoyed reading it. It's the first time that I've seen an actual example of the application code for a Hoplon app that doesn't use the Hoplon compiler -- I wasn't sure how one does that! π
I'm talking about this part: https://github.com/dilzeem/hoplon-shadow-cljs/blob/aa9e4c66a696966824590bcb68023407f093b11a/src/main/index.cljs#L52-L55
Where (home)
is a Hoplon elem
nice, yeah that's been too-secret knowledge for awhile
We probably should document it.
The luminus template should do something like that, but also lots of other things.
Nada new, @alandipert! Just banging out CLJ, gleefully watching the wheels come off ReactJS, and rooting for Hoplon/Javelin!
what's the deal with clj
and deps.edn and whatnot for clojurescript? is the recommended cljs workflow oriented around them these days, or is shadow-cljs the way?
I think there are pros and cons of doing it either way. I think doing it the tools.deps way is appealing because it gives you total control over the ClojureScript compiler options and how/when you're invoking it. But the downside, of course, is that you have to do all of that work yourself, and it's pretty complicated.
I've heard great things about shadow-cljs in that it does a good job hiding a lot of that complexity away from you.
We're actually contemplating switching over our UI (Geir, which you know well!) to use shadow-cljs instead of Boot. We've experimented with using tools.deps and it works pretty well, but it's also fiddly and we haven't quite gotten the fiddly bits working the way we want.
gotcha. yeah i think i'm thinking in terms of a speculative hoplon brand refresh, which approach to document and/or promote (if any)
This is just my opinion, but I would appreciate seeing instructions to set up a Hoplon project using either tools.deps (invoking the cljs compiler directly) or shadow-cljs
At this point, you can probably drop any mention of Boot, IMO
If someone is just getting started out with Hoplon, I don't think I would recommend that they use Boot
right yeah my thinking is similar
We have a giant hoplon project powered by boot & shadow-cljs
itβs a slow build, and not repl friendly right now but it has so much room for improvement
I agree with dave tho, skipping boot unless you need to create a complex build process
we should probably make examples that use shadow since many users will be coming from js land