2014-11-29 18:30:24 +01:00
|
|
|
(ns devsetup
|
2014-11-29 23:26:42 +01:00
|
|
|
(:require [demo :as site]
|
|
|
|
[runtests]
|
|
|
|
[reagent.core :as r]
|
2014-12-09 07:30:57 +01:00
|
|
|
[figwheel.client :as fw]))
|
2014-11-29 18:30:24 +01:00
|
|
|
|
2014-12-07 10:00:47 +01:00
|
|
|
(defn test-results []
|
|
|
|
[runtests/test-output-mini])
|
|
|
|
|
|
|
|
(defn start! []
|
|
|
|
(demo/start! {:test-results test-results})
|
2014-11-29 23:26:42 +01:00
|
|
|
(runtests/run-tests))
|
2014-11-29 18:30:24 +01:00
|
|
|
|
|
|
|
(when r/is-client
|
2014-12-09 07:30:57 +01:00
|
|
|
(fw/start
|
|
|
|
{:websocket-url "ws://localhost:3449/figwheel-ws"
|
|
|
|
:jsload-callback #(start!)
|
|
|
|
:heads-up-display true
|
|
|
|
:load-warninged-code false}))
|
2014-11-29 18:30:24 +01:00
|
|
|
|
2014-12-07 10:00:47 +01:00
|
|
|
(start!)
|