Skip to content

Boot task providing live-reload of browser css, images, etc.

License

Notifications You must be signed in to change notification settings

gfZeng/boot-reload

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boot-reload

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 from ClojureScript build on heads-up display.
    • Requires [adzerk/boot-cljs "1.7.48-5"]

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 -h

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

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

About

Boot task providing live-reload of browser css, images, etc.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Clojure 100.0%