0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 16:30:37 -05:00
penpot/scripts/figwheel.clj
2016-04-08 11:03:29 +03:00

31 lines
1.1 KiB
Clojure

(require '[figwheel-sidecar.repl :as r]
'[figwheel-sidecar.repl-api :as ra]
'[cljs.tagged-literals])
(alter-var-root #'cljs.tagged-literals/*cljs-data-readers*
assoc 'ux/tr (fn [v] `(uxbox.locales/tr ~v)))
(ra/start-figwheel!
{:figwheel-options {:css-dirs ["resources/public/css"]}
:build-ids ["dev"]
:all-builds
[{:id "dev"
: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 :ecmascript5
:language-out :ecmascript5
:output-to "resources/public/js/main.js"
:output-dir "resources/public/js"
:verbose true}}]})
(ra/cljs-repl)