Skip to content

A Boot task used to reload Clojure code on the fly while developing.

License

Notifications You must be signed in to change notification settings

samestep/boot-refresh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boot-refresh

Clojars Project

Boot task to reload code using clojure.tools.namespace.

Usage

In build.boot, add boot-refresh to your dependencies and require the task:

(merge-env! :dependencies '[[samestep/boot-refresh "0.1.0" :scope "test"]])

(require '[samestep.boot-refresh :refer [refresh]])

You can view the help info for the refresh task from the command line:

boot refresh -h

The refresh task works best with CIDER:

(setq cider-boot-parameters "repl -s watch refresh")

(cider-jack-in)

If you modify any of your source files and save your changes, you should be able to immediately use the new code from your REPL.

Development

To work on boot-refresh itself, you can use the provided dev task:

boot dev

This will start a watch loop that will reinstall the jar whenever one of boot-refresh's files changes.

About

A Boot task used to reload Clojure code on the fly while developing.

Resources

License

Stars

Watchers

Forks

Packages

No packages published