mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -05:00
20 lines
600 B
Clojure
20 lines
600 B
Clojure
(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
|
|
(b/inputs "frontend")
|
|
{:main 'uxbox.core
|
|
:output-to "resources/public/js/main.js"
|
|
:output-dir "resources/public/js"
|
|
:optimizations :advanced
|
|
:language-in :ecmascript5
|
|
:language-out :ecmascript5
|
|
:asset-path "/js"
|
|
:verbose true})
|
|
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
|