0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00
penpot/frontend/scripts/figwheel.clj

51 lines
1.4 KiB
Clojure
Raw Normal View History

2015-06-18 19:35:50 +02:00
(require '[figwheel-sidecar.repl :as r]
'[figwheel-sidecar.repl-api :as ra])
2015-06-18 19:35:50 +02:00
2016-09-30 11:33:44 +02:00
(def options
2016-11-22 18:36:23 +01:00
{;;"uxbox.config.url" "http://127.0.0.1:6060/api"
2017-03-06 09:22:29 +01:00
"uxbox.config.url" "https://demo.uxbox.io/api"
2016-09-30 11:33:44 +02:00
})
2015-06-18 19:35:50 +02:00
(ra/start-figwheel!
{:figwheel-options {:css-dirs ["resources/public/css"
"resources/public/view/css"]
2016-06-22 22:18:25 +03:00
:validate-config false
2016-05-11 00:41:39 +03:00
:server-port 3449
:server-ip "0.0.0.0"}
:build-ids ["main", "view"]
2015-06-18 19:35:50 +02:00
:all-builds
[{:id "main"
:figwheel {:on-jsload "uxbox.main.ui/init"}
:source-paths ["src" "vendor"]
:compiler
{:main 'uxbox.main
2016-12-20 12:37:24 +01:00
:cache-analysis false
:parallel-build false
:optimizations :none
2016-09-30 11:33:44 +02:00
:closure-defines options
:language-in :ecmascript6
:language-out :ecmascript5
:output-to "resources/public/js/main.js"
:output-dir "resources/public/js/main"
2016-07-29 15:17:15 +03:00
:asset-path "/js/main"
:verbose true}}
{:id "view"
:figwheel {:on-jsload "uxbox.view.ui/init"}
:source-paths ["src" "vendor"]
:compiler
{:main 'uxbox.view
:parallel-build false
2016-12-20 12:37:24 +01:00
:cache-analysis false
:optimizations :none
2016-09-30 11:33:44 +02:00
:closure-defines options
:language-in :ecmascript6
:language-out :ecmascript5
2016-07-29 15:17:15 +03:00
:output-to "resources/public/js/view.js"
:output-dir "resources/public/js/view"
:asset-path "/js/view"
:verbose true}}
]})
2015-06-18 19:35:50 +02:00
(ra/cljs-repl "main")