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
|
|
|
|
|
|
|
(ra/start-figwheel!
|
2016-05-10 16:41:39 -05:00
|
|
|
{:figwheel-options {:css-dirs ["resources/public/css"]
|
|
|
|
:server-port 3449
|
|
|
|
:server-ip "0.0.0.0"}
|
2016-06-12 02:27:05 -05:00
|
|
|
:build-ids ["main", "preview"]
|
2015-06-18 12:35:50 -05:00
|
|
|
:all-builds
|
2016-06-12 02:27:05 -05:00
|
|
|
[{:id "main"
|
2016-01-17 16:28:10 -05:00
|
|
|
:figwheel {:on-jsload "uxbox.ui/init"}
|
2016-04-07 14:51:40 -05:00
|
|
|
:source-paths ["src" "vendor"]
|
2016-04-11 09:31:14 -05:00
|
|
|
:compiler
|
2016-06-12 02:27:05 -05:00
|
|
|
{:main 'uxbox.main
|
2016-04-11 09:31:14 -05:00
|
|
|
:asset-path "js"
|
|
|
|
:parallel-build false
|
|
|
|
:optimizations :none
|
2016-06-12 02:27:05 -05:00
|
|
|
;; :closure-defines {"uxbox.repo.core.url"
|
|
|
|
;; "https://test.uxbox.io/api"}
|
2016-04-11 09:31:14 -05:00
|
|
|
:closure-defines {"uxbox.repo.core.url"
|
2016-06-12 02:27:05 -05:00
|
|
|
"http://localhost:6060/api"}
|
2016-04-11 09:31:14 -05:00
|
|
|
:warnings {:ns-var-clash false}
|
|
|
|
:pretty-print true
|
|
|
|
:language-in :ecmascript6
|
|
|
|
:language-out :ecmascript5
|
|
|
|
:output-to "resources/public/js/main.js"
|
|
|
|
:output-dir "resources/public/js"
|
2016-06-12 02:27:05 -05:00
|
|
|
:verbose true}}
|
|
|
|
#_{:id "preview"
|
|
|
|
;; :figwheel {:on-jsload "uxbox.ui/init"}
|
|
|
|
:source-paths ["src" "vendor"]
|
|
|
|
:compiler
|
|
|
|
{:main 'uxbox.core
|
|
|
|
:asset-path "js"
|
|
|
|
:parallel-build false
|
|
|
|
:optimizations :none
|
|
|
|
;; :closure-defines {"uxbox.repo.core.url"
|
|
|
|
;; "https://test.uxbox.io/api"}
|
|
|
|
:closure-defines {"uxbox.repo.core.url"
|
|
|
|
"http://localhost:6060/api"}
|
|
|
|
:warnings {:ns-var-clash false}
|
|
|
|
:pretty-print true
|
|
|
|
:language-in :ecmascript6
|
|
|
|
:language-out :ecmascript5
|
|
|
|
:output-to "resources/public/preview/js/main.js"
|
|
|
|
:output-dir "resources/public/preview/js"
|
|
|
|
:verbose true}}
|
|
|
|
|
|
|
|
|
|
|
|
]})
|
2015-06-18 12:35:50 -05:00
|
|
|
|
2016-06-12 02:27:05 -05:00
|
|
|
(ra/cljs-repl "main")
|