tools-deps

karol.adamiec 2023-10-02T17:16:58.664569Z

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?

nbardiuk 2023-10-02T17:59:44.782869Z

{: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.adamiec 2023-10-02T18:13:33.144439Z

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

karol.adamiec 2023-10-02T18:13:49.250099Z

might be a figwheel main option