0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00
penpot/scripts/figwheel.clj
2016-01-17 23:28:10 +02:00

26 lines
864 B
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"]
:compiler {:main 'uxbox.core
:asset-path "js"
:parallel-build false
:optimizations :none
: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)