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

31 lines
931 B
Clojure
Raw Normal View History

2015-06-18 12:35:50 -05:00
(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)))
2015-06-18 12:35:50 -05:00
(ra/start-figwheel!
{:figwheel-options {:css-dirs ["resources/public/css"]}
:build-ids ["dev"]
2015-06-18 12:35:50 -05:00
:all-builds
[{:id "dev"
:figwheel {:on-jsload "uxbox.ui/init"}
2016-04-07 14:51:40 -05:00
: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"}
: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"
:verbose true}}]})
2015-06-18 12:35:50 -05:00
2016-04-10 10:44:12 -05:00
(ra/cljs-repl "dev")