This project presents a minimal setup for Hoplon using boot2.
- Java Development Kit (JDK) version 1.7 or greater
- boot
-
Start the
dev
task. In a terminal run:$ boot dev
This will give you a Hoplon development setup with:
- auto compilation on file changes
- audible warning for compilation success or failures
- auto reload the html page on changes
- Clojurescript REPL
-
Open the generated file on
target/index.html
on your browser. -
To use the Clojurescript REPL on another terminal run:
$ boot repl -c
boot.user=> (start-repl) ... cljs.user=> (.alert js/window "From the Clojurescript REPL")
You should see a popup on the browser.
-
If you edit and save a file, the task will recompile the code and reload the browser to show the updated version.
-
Run the
prod
task. In a terminal run:$ boot prod
-
The compiled files will be on the
target/
directory. This will use advanced compilation and prerender the html.