Utilities for supporting a clojure.tools.namespace reloading dev lifecycle.
Add the following to your project.clj
:repl-options {:init (load-file "reup.clj")}
Utilities for supporting a clojure.tools.namespace reloading dev lifecycle. Add the following to your project.clj `:repl-options {:init (load-file "reup.clj")}`
(setup {:keys [start-app-sym stop-app-sym tests-regex]})
Helper for initializing a clojure.tools.namespace dev lifecycle. See http://thinkrelevance.com/blog/2013/06/04/clojure-workflow-reloaded for more info.
This will return a function that, when called, will stop the current environment, reload all namespaces, and start a new environment.
Params:
start-app-sym
-- FQ symbol of a no-arg function which
starts the environmentstop-app-sym
-- FQ symbol of a 1-arg
function which stops the environment. The result of calling the
start app function is passed in as it's first parametertests-regex
-- Run tests after reload for all namespaces matchingHelper for initializing a clojure.tools.namespace dev lifecycle. See http://thinkrelevance.com/blog/2013/06/04/clojure-workflow-reloaded for more info. This will return a function that, when called, will stop the current environment, reload all namespaces, and start a new environment. Params: * `start-app-sym` -- FQ symbol of a no-arg function which starts the environment * `stop-app-sym` -- FQ symbol of a 1-arg function which stops the environment. The result of calling the start app function is passed in as it's first parameter * `tests-regex` -- Run tests after reload for all namespaces matching
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close