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

47 lines
1.4 KiB
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])
2015-06-18 12:35:50 -05:00
(ra/start-figwheel!
{:figwheel-options {:css-dirs ["resources/public/css"
"resources/public/view/css"]
2016-05-10 16:41:39 -05:00
:server-port 3449
:server-ip "0.0.0.0"}
:build-ids ["main", "view"]
2015-06-18 12:35:50 -05:00
:all-builds
[{:id "main"
:figwheel {:on-jsload "uxbox.main.ui/init"}
2016-06-22 13:20:17 -05:00
:source-paths ["src"]
:compiler
{:main 'uxbox.main
:parallel-build false
:optimizations :none
:closure-defines {"uxbox.common.constants.url"
2016-06-22 13:20:17 -05:00
"http://localhost:6060/api"}
:warnings {:ns-var-clash false}
:language-in :ecmascript6
:language-out :ecmascript5
:output-to "resources/public/js/main.js"
:output-dir "resources/public/js/main"
:asset-path "js/main"
:verbose true}}
{:id "view"
:figwheel {:on-jsload "uxbox.view.ui/init"}
2016-06-22 13:20:17 -05:00
:source-paths ["src"]
:compiler
{:main 'uxbox.view
:parallel-build false
:optimizations :none
:closure-defines {"uxbox.common.constants.url"
2016-06-22 13:20:17 -05:00
"http://localhost:6060/api"}
:warnings {:ns-var-clash false}
:language-in :ecmascript6
:language-out :ecmascript5
:output-to "resources/public/view/js/view.js"
:output-dir "resources/public/view/js/view"
:asset-path "js/view"
:verbose true}}
]})
2015-06-18 12:35:50 -05:00
(ra/cljs-repl "main")