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