mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
Update scripts.
This commit is contained in:
23
frontend/scripts/build-main.clj
Normal file
23
frontend/scripts/build-main.clj
Normal file
@@ -0,0 +1,23 @@
|
||||
(require '[cljs.build.api :as b])
|
||||
|
||||
(println "Building ...")
|
||||
|
||||
(let [start (System/nanoTime)]
|
||||
(b/build
|
||||
(b/inputs "src")
|
||||
{:main 'uxbox.main
|
||||
:parallel-build false
|
||||
:output-to "resources/public/js/main.js"
|
||||
:source-map "resources/public/js/main.js.map"
|
||||
:output-dir "resources/public/js/main"
|
||||
:closure-defines {"uxbox.config.url" "https://test.uxbox.io/api"
|
||||
"uxbox.config.viewurl" "https://test.uxbox.io/view/"}
|
||||
:optimizations :advanced
|
||||
:externs ["externs/main.js"]
|
||||
:static-fns true
|
||||
:elide-asserts true
|
||||
:pretty-print false
|
||||
:language-in :ecmascript6
|
||||
:language-out :ecmascript5
|
||||
:verbose true})
|
||||
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
|
||||
Reference in New Issue
Block a user