Skip to content

Instantly share code, notes, and snippets.

@thumbnail
Created November 7, 2019 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thumbnail/d6ce4e97e81bed4dd3441e655817fdda to your computer and use it in GitHub Desktop.
Save thumbnail/d6ce4e97e81bed4dd3441e655817fdda to your computer and use it in GitHub Desktop.
reloading lein profile
{:reloading {:dependencies [[org.clojure/tools.namespace "0.3.1"]]
:injections [(->> (System/getProperty "user.dir")
(java.io.File.)
(.listFiles)
(filter #(and (.isDirectory %)
(not (.isHidden %))))
(map #(.getName %))
(filter #{"src", "test", "modules", "libs", "main"}) ;; maybe this should be a blacklist
(apply clojure.tools.namespace.repl/set-refresh-dirs))]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment