Liking cljdoc? Tell your friends :D

nsfw.reup

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")}`
raw docstring

exception?clj

(exception? e)
source

ns-for-symclj

(ns-for-sym sym)
source

setupclj

(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 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
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 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
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close