is the best way to locally dev for om next the devcards
boot task?
@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
.
@dehli there is no “best way”, always depends on your needs.
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
@dehli use lein install
to install the Om locally, then you can just use it as a regular lein dependency on other project
@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.
@danielstockton there are 2 other, one is trying to use lein checkouts: https://github.com/technomancy/leiningen/blob/master/doc/TUTORIAL.md#checkout-dependencies
but I wasn't able to make it work properly with CLJS... with Clojure worked great for me
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
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
Oh, both great tips, thanks.
no problem 😉
Thanks so much! I'll give that a go