Fork me on GitHub
#om
<
2017-08-01
>
dehli01:08:18

is the best way to locally dev for om next the devcards boot task?

rarous05:08:01

@roklenarcic they have to be locally unique in subtree. But the key has to be the same for the same item after sort or something. You can use sequential indexes like map-indexed.

rarous05:08:36

@dehli there is no “best way”, always depends on your needs.

dehli11:08:28

So I just want to try to make changes to the om.next framework and see how it affects created components. Unfortunately I'm having a difficult time figuring out how to locally build om.next/run the examples

wilkerlucio12:08:14

@dehli use lein install to install the Om locally, then you can just use it as a regular lein dependency on other project

danielstockton12:08:58

@wilkerlucio That's the workflow I use. I asked last week in #clojurescript if there was a better way but no response. It can be annoying running lein install all the time and restarting the repl.

wilkerlucio12:08:13

but I wasn't able to make it work properly with CLJS... with Clojure worked great for me

wilkerlucio12:08:45

but if you need to do fast-iteration, maybe to debug something on your code, a simpler way that worked for me is to just copy the namespace you want to override into your project

wilkerlucio12:08:07

if you have the namespace duplicated (on dependency and on your project) your project one will have precedence, so you can work as if it was part of your project

danielstockton12:08:27

Oh, both great tips, thanks.

wilkerlucio12:08:46

no problem 😉

dehli12:08:44

Thanks so much! I'll give that a go