Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging :main-opts from existing deps.edn #4

Open
arichiardi opened this issue Nov 24, 2018 · 0 comments
Open

Merging :main-opts from existing deps.edn #4

arichiardi opened this issue Nov 24, 2018 · 0 comments

Comments

@arichiardi
Copy link

Hello folks!

I have a small feature request/bug report on something I am trying to do for cider-nrepl. I have a deps.edn with the following section:

{:aliases
  {:test-cljs {:main-opts ["-m" "nrepl.cmdline" "--middleware"
                          "[cider.nrepl/cider-middleware,cider.piggieback/wrap-cljs-repl]"]}}

And cider-nrepl has a project.clj with the following :profiles key:

:test-cljs {:test-paths ["test/cljs"]
            :dependencies [[cider/piggieback "0.3.9"]]

It would be really awesome if somehow the end result could be:

{:aliases
  :test-cljs {:extra-paths ["test/cljs"]
              :extra-deps {cider/piggieback {:mvn/version "0.3.9"}}
              :main-opts ["-m" "nrepl.cmdline" "--middleware"
                              "[cider.nrepl/cider-middleware,cider.piggieback/wrap-cljs-repl]"]}}

I could then generate the deps.edn my Clojure CLI launcher and ditch the :deps section that I currently have in there 😄

Thank you for your work on this lib, I see it is going to be very useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant