mirror of
https://github.com/penpot/penpot.git
synced 2025-08-03 00:19:15 +02:00
Prepare scripts for deploy.
This commit is contained in:
parent
e2be16a421
commit
2aa95a3467
6 changed files with 219 additions and 17 deletions
2
scripts/dist
Executable file
2
scripts/dist
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
lein trampoline run -m clojure.main scripts/dist.clj
|
21
scripts/dist.clj
Normal file
21
scripts/dist.clj
Normal file
|
@ -0,0 +1,21 @@
|
|||
(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 "src")
|
||||
{:main 'uxbox.core
|
||||
:parallel-build false
|
||||
:warnings {:ns-var-clash false}
|
||||
:output-to "resources/public/js/main.js"
|
||||
:output-dir "resources/public/js"
|
||||
:optimizations :simple
|
||||
:language-in :ecmascript5
|
||||
:language-out :ecmascript5
|
||||
:verbose true})
|
||||
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
|
Loading…
Add table
Add a link
Reference in a new issue