Skip to content

An example project compiling cljs with boot and running figwheel for hot reloading code. Client and server-side use of rum.

Notifications You must be signed in to change notification settings

torgeir/boot-figwheel-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boot+figwheel example

A boot+figwheel example, that hot reloads cljs and less. Client and server-side use of rum.

prerequisits

Install boot!

run/watch

boot dev

hot reload cljs and css

  • visit http://localhost:8080
  • change core.cljs to watch the js reload!
  • change app.main.less to watch the css reload!

connect the cljs browser repl

  • connect to the repl server (e.g. with cider-connect in emacs, or like this in cursive. The port number is logged when you run boot 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!

useful boot tasks

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

About

An example project compiling cljs with boot and running figwheel for hot reloading code. Client and server-side use of rum.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published