Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 1.18 KB

README.md

File metadata and controls

45 lines (37 loc) · 1.18 KB

Minimal Hoplon

This project presents a minimal setup for Hoplon using boot2.

Dependencies

  • Java Development Kit (JDK) version 1.7 or greater
  • boot

Usage

Development

  1. 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
  2. Open the generated file on target/index.html on your browser.

  3. 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.

  4. If you edit and save a file, the task will recompile the code and reload the browser to show the updated version.

Production

  1. Run the prod task. In a terminal run:

    $ boot prod
  2. The compiled files will be on the target/ directory. This will use advanced compilation and prerender the html.