mirror of
https://github.com/penpot/penpot.git
synced 2025-05-12 14:06:39 +02:00
Improve and adapt build scripts for new view app.
This commit is contained in:
parent
3d72c53f02
commit
c0cc1d2b81
7 changed files with 56 additions and 12 deletions
24
scripts/dist-view.clj
Normal file
24
scripts/dist-view.clj
Normal file
|
@ -0,0 +1,24 @@
|
|||
(require '[cljs.build.api :as b])
|
||||
|
||||
(println "Building ...")
|
||||
|
||||
(let [start (System/nanoTime)]
|
||||
(b/build
|
||||
(b/inputs "src" "vendor")
|
||||
{:main 'uxbox.view
|
||||
:parallel-build false
|
||||
:warnings {:ns-var-clash false}
|
||||
:output-to "dist/view/js/view.js"
|
||||
:source-map "dist/view/js/view.js.map"
|
||||
:output-dir "dist/view/js/view/"
|
||||
:closure-defines {"uxbox.common.constants.url"
|
||||
"https://test.uxbox.io/api"}
|
||||
:optimizations :simple
|
||||
:externs ["externs/main.js"]
|
||||
:source-map "dist/view/js/view.js.map"
|
||||
:static-fns 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