A boot+figwheel example, that hot reloads cljs and less. Client and server-side use of rum.
Install boot
!
boot dev
- visit
http://localhost:8080
- change
core.cljs
to watch the js reload! - change
app.main.less
to watch the css reload!
- connect to the repl server (e.g. with
cider-connect
in emacs, or like this in cursive. The port number is logged when you runboot dev
.) - at the prompt
boot.user>
type(boot-figwheel/cljs-repl)
- type
(js/alert "woah!")
to watch an alert box pop open in the browser - woah!
Build a single composed task, e.g. to build a jar file
boot dist
Show help for a task, e.g. the target
task
boot target -h
Run a single task and pipe the resulting file set to target/
boot less -- target --no-clean
Build, serve the target/public
folder, and keep the server up with the wait
task
boot build -- serve -d target/public -- wait