Boot task providing live-reload of browser css, images, etc.
Clone or download
Latest commit f72559c Jun 30, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc Release 0.4.13 Oct 18, 2016
src/adzerk Merge pull request #122 from matthewlal/master Jun 30, 2018
test/adzerk/boot_reload Munge reserved JS keywords in boot-reload client namespace name Jan 30, 2017
.gitignore init Oct 27, 2014
.travis.yml Add JDK 9 to travis May 25, 2018
CHANGELOG.md Release 0.6.0 Jun 30, 2018
CONTRIBUTING.md Add CONTRIBUTING.md Jan 8, 2016
LICENSE init Oct 27, 2014
README.md Update README.md Nov 8, 2017
boot.properties Update dependencies Jun 30, 2018
build.boot Release 0.6.0 Jun 30, 2018
test.sh Fix test script Jun 30, 2018

README.md

boot-reload Downloads Build Status Dependencies Status

Clojars Project

Boot task to automatically reload resources in the browser when files in the project change. Communication with the client is via websockets.

  • Provides the reload task
  • Reload client can show warnings and exceptions heads-up display

Usage

Add dependency to build.boot and require the task:

(set-env! :dependencies '[[adzerk/boot-reload "X.Y.Z" :scope "test"]])

(require '[adzerk.boot-reload :refer [reload]])

Add the task to your development pipeline before (cljs ...):

(deftask dev []
  (comp
   (reload)
   (cljs)))

Additional Info

You can see the options available on the command line:

boot reload --help

or in the REPL:

boot.user=> (doc reload)

Examples

For in-depth, up-to-date examples of how to use reload in development, see Boot templates and example projects in the ClojureScript wiki.

License

Copyright © 2014 Adzerk
Copyright © 2015-2017 Juho Teperi

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.