/spar.bz-cljs

personal website redone with a clojurescript twist.

Primary LanguageClojure

spar.bz

now featuring clojurescript!

stack

below is taken from reagent-figwheel

Development Mode

cljs-devtools

To enable:

  1. Open Chrome's DevTools,Ctrl-Shift-i
  2. Open "Settings", F1
  3. Check "Enable custom formatters" under the "Console" section
  4. close and re-open DevTools

Compile css (garden):

Compile css file once.

lein garden once

Automatically recompile css file on change.

lein garden auto

Run application:

lein clean
lein figwheel dev

Figwheel will automatically push cljs changes to the browser.

Wait a bit, then browse to http://localhost:3449.

Run tests:

lein clean
lein doo phantom test once

The above command assumes that you have phantomjs installed. However, please note that doo can be configured to run cljs.test in many other JS environments (chrome, ie, safari, opera, slimer, node, rhino, or nashorn).

Production Build

lein clean
lein cljsbuild once min