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

24 lines
722 B
Clojure
Raw Normal View History

(require '[cljs.build.api :as b])
2016-02-21 09:42:35 -05:00
(println "Building ...")
(let [start (System/nanoTime)]
(b/build
2016-06-22 13:20:17 -05:00
(b/inputs "src")
{:main 'uxbox.main
:parallel-build false
2016-02-21 09:42:35 -05:00
:warnings {:ns-var-clash false}
:output-to "dist/js/main.js"
:source-map "dist/js/main.js.map"
:output-dir "dist/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"]
2016-02-21 13:42:01 -05:00
:static-fns true
:pretty-print false
2016-05-08 10:03:37 -05:00
:language-in :ecmascript6
2016-02-21 09:42:35 -05:00
:language-out :ecmascript5
:verbose true})
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))