mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 08:06:38 +02:00
Update scripts.
This commit is contained in:
parent
730bbba2b9
commit
5a167ae031
11 changed files with 47 additions and 10 deletions
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"))
|
Loading…
Add table
Add a link
Reference in a new issue