0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -05:00
penpot/scripts/dist.clj

28 lines
864 B
Clojure
Raw Normal View History

2016-02-21 09:42:35 -05:00
(require '[cljs.build.api :as b]
'[cljs.tagged-literals])
(alter-var-root #'cljs.tagged-literals/*cljs-data-readers*
assoc 'ux/tr (fn [v] `(uxbox.locales/tr ~v)))
(println "Building ...")
(let [start (System/nanoTime)]
(b/build
2016-04-07 14:51:40 -05:00
(b/inputs "src" "vendor")
2016-02-21 09:42:35 -05:00
{:main 'uxbox.core
:parallel-build false
:warnings {:ns-var-clash false}
:output-to "resources/public/js/main.js"
:output-dir "resources/public/js"
2016-03-19 10:59:13 -05:00
:closure-defines {"uxbox.repo.core.url"
"https://test.uxbox.io/api"}
:optimizations :simple
:externs ["externs/main.js"]
:source-map "resources/public/js/main.js.map"
2016-02-21 13:42:01 -05:00
:static-fns true
:pretty-print true
2016-02-21 09:42:35 -05:00
:language-in :ecmascript5
:language-out :ecmascript5
:verbose true})
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))