Fork me on GitHub
#tools-deps
<
2023-10-02
>
karol.adamiec17:10:58

HI, I am trying to use hashp (https://github.com/weavejester/hashp) Sadly there is no instruction how to add this when using tools.deps. I add the lib to my ~/.clojure/deps.edn fine as dependency, and then in cljs file i can add it to current namespace and use. What i would like is for the #p macro to be available without including the require. Lein has :injections, is there similiart thing with tools.deps and clojurescript?

nbardiuk17:10:44

{:aliases
 {:nrepl
  {:extra-deps {nrepl/nrepl               {:mvn/version "RELEASE"}
                cider/cider-nrepl         {:mvn/version "RELEASE"}
                hashp/hashp               {:mvn/version "RELEASE"}}
   :main-opts  ["-e" "(require,'hashp.core)"
                "-m" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware]"]}}}
I've added a require for hashp with -e flag in the alias I use to start my repl

karol.adamiec18:10:33

that is a good path i think... the issue seems to be that i would like that in cljs

karol.adamiec18:10:49

might be a figwheel main option