re-natal/resources/cljs-rum/main_dev.cljs

23 lines
1011 B
Plaintext
Raw Permalink Normal View History

2016-04-27 03:12:01 +00:00
(ns ^:figwheel-no-load env.$PLATFORM$.main
(:require [$PROJECT_NAME_HYPHENATED$.$PLATFORM$.core :as core]
[figwheel.client :as fw]
[env.config :as conf]))
2016-04-27 03:12:01 +00:00
(assert (exists? core/init) "Fatal Error - Your core.cljs file doesn't define an 'init' function!!! - Perhaps there was a compilation failure?")
2017-09-25 19:00:34 +00:00
(assert (exists? core/root-component-factory) "Fatal Error - Your core.cljs file doesn't define an 'root-component-factory' function!!! - Perhaps there was a compilation failure?")
(assert (exists? core/mount-app) "Fatal Error - Your core.cljs file doesn't define an 'mount-app' function!!! - Perhaps there was a compilation failure?")
2016-04-27 03:12:01 +00:00
(enable-console-print!)
(fw/start {
:websocket-url (:$PLATFORM$ conf/figwheel-urls)
:heads-up-display false
;; TODO make this Rum something
:jsload-callback #(#'core/mount-app)})
2016-04-27 03:12:01 +00:00
(core/init)
2017-05-30 18:09:51 +00:00
;; Do not delete, root-el is used by the figwheel-bridge.js
2016-04-27 03:12:01 +00:00
(def root-el (core/root-component-factory))