If you had a simple main that could be used to do the startup, that could also be delivered via an extra dep (even a git dep) and could declare tools.nrepl and cider-nrepl as deps itself. Then you would have basically one thing you can add and run.
On Wed, Jan 24, 2018 at 8:12 AM, Bozhidar Batsov <bozhi...@batsov.com> wrote: > Yeah, I was thinking exactly of this - passing some deps as command-line > args and running some simply script, that we can bundle with CIDER. I was > just wondering if I could do it easy without a script. :-) > > At any rate I think that clj will lower the bar to entry significantly for > newcomers, as asking people to install something like lein or boot to start > playing with the language is a bit too much IMO. > > On 24 January 2018 at 15:55, Alex Miller <a...@puredanger.com> wrote: > >> For the deps, you can either create an alias (probably best in >> ~/.clojure/deps.edn): >> >> { ... >> :aliases >> {:nrepl >> {:extra-deps >> {org.clojure/tools.nrepl {:mvn/version “0.2.13”} >> cider/cider-nrepl {:mvn/version “0.17.0-SNAPSHOT”}}}}} >> >> Which you’ll activate with clojure -R:nrepl >> >> Or inject them directly on the command line with the new -Sdeps: >> >> clojure -Sdeps “{:deps {org.clojure/tools.nrepl {:mvn/version >> \“0.2.13\”} cider/cider-nrepl {:mvn/version \“0.17.0-SNAPSHOT\”}}}” >> >> Then it’s a matter of figuring out whatever setup you need to run a >> headless nrepl server with the right middleware starting from a main. I’m >> guessing this probably involves a few lines of code. It’s certainly >> possible to handle that through some combination of clojure.main’s -m -i -e >> params or it might be simplest to just write a .clj file and have >> clojure.main execute that. >> >> One of the things in my queue for the next few weeks is a way to create a >> main args alias so that may come in handy if it is possible to do it >> without a script and embed it in the shared aliases. >> >> >> On Jan 24, 2018, at 6:20 AM, Bozhidar Batsov <bozhi...@batsov.com> wrote: >> >> How would you suggest running an nREPL server with clj? I want to use the >> new functionality to just inject nREPL and some middleware as deps and >> start a REPL server that CIDER could connect to. Basically I want to use it >> do something like: >> >> lein update-in :dependencies conj \[org.clojure/tools.nrepl\ \"0.2.13\"\ >> \:exclusions\ \[org.clojure/clojure\]\] -- update-in :plugins conj >> \[cider/cider-nrepl\ \"0.17.0-SNAPSHOT\"\] -- repl :headless :host ::... >> (that's how we boot a CIDER compatible repl with leiningen) >> >> I've got a few ideas, but you might know something that I don't. >> >> On 23 January 2018 at 22:37, Alex Miller <a...@puredanger.com> wrote: >> >>> clojure tools 1.9.0.315 is now available in brew and via >>> https://clojure.org/guides/getting_started >>> >>> Highlights: >>> >>> * NEW -Stree to print dependency tree >>> * NEW -Sdeps to supply a deps.edn on the command line as data >>> * FIX bug with git deps using :deps/root writing File objects to libs >>> files >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Clojure" group. >>> To post to this group, send email to clojure@googlegroups.com >>> Note that posts from new members are moderated - please be patient with >>> your first post. >>> To unsubscribe from this group, send email to >>> clojure+unsubscr...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/group/clojure?hl=en >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Clojure" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to clojure+unsubscr...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to clojure@googlegroups.com >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> clojure+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "Clojure" group. >> To unsubscribe from this topic, visit https://groups.google.com/d/to >> pic/clojure/RlHjnJPpFbU/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> clojure+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to clojure@googlegroups.com >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> clojure+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Clojure" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to clojure+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to a topic in the > Google Groups "Clojure" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/clojure/RlHjnJPpFbU/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.