2015-06-18 12:35:50 -05:00
|
|
|
(require '[figwheel-sidecar.repl :as r]
|
2016-04-14 13:39:50 -05:00
|
|
|
'[figwheel-sidecar.repl-api :as ra])
|
2015-06-18 12:35:50 -05:00
|
|
|
|
2016-09-30 04:33:44 -05:00
|
|
|
(def options
|
|
|
|
{;; "uxbox.config.url" "http://127.0.0.1:6060/api"
|
|
|
|
"uxbox.config.url" "https://test.uxbox.io/api"
|
|
|
|
})
|
|
|
|
|
2015-06-18 12:35:50 -05:00
|
|
|
(ra/start-figwheel!
|
2016-06-15 14:31:11 -05:00
|
|
|
{:figwheel-options {:css-dirs ["resources/public/css"
|
|
|
|
"resources/public/view/css"]
|
2016-06-22 14:18:25 -05:00
|
|
|
:validate-config false
|
2016-05-10 16:41:39 -05:00
|
|
|
:server-port 3449
|
|
|
|
:server-ip "0.0.0.0"}
|
2016-06-15 12:23:39 -05:00
|
|
|
:build-ids ["main", "view"]
|
2015-06-18 12:35:50 -05:00
|
|
|
:all-builds
|
2016-06-12 02:27:05 -05:00
|
|
|
[{:id "main"
|
2016-06-14 15:50:55 -05:00
|
|
|
:figwheel {:on-jsload "uxbox.main.ui/init"}
|
2016-06-22 13:20:17 -05:00
|
|
|
:source-paths ["src"]
|
2016-04-11 09:31:14 -05:00
|
|
|
:compiler
|
2016-06-12 02:27:05 -05:00
|
|
|
{:main 'uxbox.main
|
2016-06-15 12:23:39 -05:00
|
|
|
:parallel-build false
|
2016-04-11 09:31:14 -05:00
|
|
|
:optimizations :none
|
|
|
|
:warnings {:ns-var-clash false}
|
2016-09-30 04:33:44 -05:00
|
|
|
:closure-defines options
|
2016-04-11 09:31:14 -05:00
|
|
|
:language-in :ecmascript6
|
|
|
|
:language-out :ecmascript5
|
|
|
|
:output-to "resources/public/js/main.js"
|
2016-06-15 12:23:39 -05:00
|
|
|
:output-dir "resources/public/js/main"
|
2016-07-29 07:17:15 -05:00
|
|
|
:asset-path "/js/main"
|
2016-06-15 12:23:39 -05:00
|
|
|
:verbose true}}
|
|
|
|
|
|
|
|
{:id "view"
|
|
|
|
:figwheel {:on-jsload "uxbox.view.ui/init"}
|
2016-06-22 13:20:17 -05:00
|
|
|
:source-paths ["src"]
|
2016-06-15 12:23:39 -05:00
|
|
|
:compiler
|
|
|
|
{:main 'uxbox.view
|
|
|
|
:parallel-build false
|
|
|
|
:optimizations :none
|
|
|
|
:warnings {:ns-var-clash false}
|
2016-09-30 04:33:44 -05:00
|
|
|
:closure-defines options
|
2016-06-15 12:23:39 -05:00
|
|
|
:language-in :ecmascript6
|
|
|
|
:language-out :ecmascript5
|
2016-07-29 07:17:15 -05:00
|
|
|
:output-to "resources/public/js/view.js"
|
|
|
|
:output-dir "resources/public/js/view"
|
|
|
|
:asset-path "/js/view"
|
2016-06-12 02:27:05 -05:00
|
|
|
:verbose true}}
|
2016-06-14 15:50:55 -05:00
|
|
|
]})
|
2015-06-18 12:35:50 -05:00
|
|
|
|
2016-06-12 02:27:05 -05:00
|
|
|
(ra/cljs-repl "main")
|