Skip to content

Instantly share code, notes, and snippets.

@mikeball
Last active March 5, 2018 18:16
Show Gist options
  • Save mikeball/63b545702f21a9fb319d59e7ab72653a to your computer and use it in GitHub Desktop.
Save mikeball/63b545702f21a9fb319d59e7ab72653a to your computer and use it in GitHub Desktop.

~/.clojure/deps.edn file

 {:1.8 {:override-deps {org.clojure/clojure {:mvn/version "1.8.0"}}}
  :1.9 {:override-deps {org.clojure/clojure {:mvn/version "1.9.0"}}}
  :master {:override-deps {org.clojure/clojure {:mvn/version "1.10.0-master-SNAPSHOT"}}}
  :test {:extra-paths ["test"]}
  :bench {:extra-deps {criterium {:mvn/version "0.4.4"}}}
  :proto {:extra-deps {proto-repl {:mvn/version "RELEASE"}}}
  :socket {:jvm-opts ["-Dclojure.server.repl={:port,5555,:accept,clojure.core.server/repl}"]}
  :nrepl {:extra-deps {org.clojure/tools.nrepl {:mvn/version "0.2.12"}}
          :main-opts ["-e" "(require,'[clojure.tools.nrepl.server,:refer,[start-server]]),(start-server,:port,5555)"]}}}

So I can just go into a project and type clj -A:test:proto:nrepl and start up an nREPL server that I can connect to from Atom/ProtoREPL with my tests on the path and just start hacking away 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment