mirror of
https://github.com/penpot/penpot.git
synced 2025-03-13 16:21:57 -05:00
Update scripts.
This commit is contained in:
parent
730bbba2b9
commit
5a167ae031
11 changed files with 47 additions and 10 deletions
2
frontend/scripts/build-main
Executable file
2
frontend/scripts/build-main
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
lein trampoline run -m clojure.main scripts/build-main.clj
|
23
frontend/scripts/build-main.clj
Normal file
23
frontend/scripts/build-main.clj
Normal file
|
@ -0,0 +1,23 @@
|
|||
(require '[cljs.build.api :as b])
|
||||
|
||||
(println "Building ...")
|
||||
|
||||
(let [start (System/nanoTime)]
|
||||
(b/build
|
||||
(b/inputs "src")
|
||||
{:main 'uxbox.main
|
||||
:parallel-build false
|
||||
:output-to "resources/public/js/main.js"
|
||||
:source-map "resources/public/js/main.js.map"
|
||||
:output-dir "resources/public/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"]
|
||||
:static-fns true
|
||||
:elide-asserts true
|
||||
:pretty-print false
|
||||
:language-in :ecmascript6
|
||||
:language-out :ecmascript5
|
||||
:verbose true})
|
||||
(println "... done. Elapsed" (/ (- (System/nanoTime) start) 1e9) "seconds"))
|
|
@ -7,7 +7,6 @@
|
|||
(b/inputs "src" "test")
|
||||
{:main 'uxbox.tests.main
|
||||
:parallel-build false
|
||||
:warnings {:ns-var-clash false}
|
||||
:output-to "out/tests.js"
|
||||
:source-map "out/tests.js.map"
|
||||
:output-dir "out/tests"
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
(b/inputs "src")
|
||||
{:main 'uxbox.worker
|
||||
:parallel-build false
|
||||
:warnings {:ns-var-clash false}
|
||||
:output-to "resources/public/js/worker.js"
|
||||
:source-map "resources/public/js/worker.js.map"
|
||||
:output-dir "resources/public/js/worker"
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
(b/inputs "src")
|
||||
{:main 'uxbox.main
|
||||
:parallel-build false
|
||||
:warnings {:ns-var-clash false}
|
||||
:output-to "dist/js/main.js"
|
||||
:source-map "dist/js/main.js.map"
|
||||
:output-dir "dist/js/main"
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
(b/inputs "src")
|
||||
{:main 'uxbox.view
|
||||
:parallel-build false
|
||||
:warnings {:ns-var-clash false}
|
||||
:output-to "dist/js/view.js"
|
||||
:source-map "dist/js/view.js.map"
|
||||
:output-dir "dist/js/view/"
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
'[figwheel-sidecar.repl-api :as ra])
|
||||
|
||||
(def options
|
||||
{;; "uxbox.config.url" "http://127.0.0.1:6060/api"
|
||||
"uxbox.config.url" "https://test.uxbox.io/api"
|
||||
{"uxbox.config.url" "http://127.0.0.1:6060/api"
|
||||
;; "uxbox.config.url" "https://test.uxbox.io/api"
|
||||
})
|
||||
|
||||
(ra/start-figwheel!
|
||||
|
@ -21,7 +21,6 @@
|
|||
{:main 'uxbox.main
|
||||
:parallel-build false
|
||||
:optimizations :none
|
||||
:warnings {:ns-var-clash false}
|
||||
:closure-defines options
|
||||
:language-in :ecmascript6
|
||||
:language-out :ecmascript5
|
||||
|
@ -37,7 +36,6 @@
|
|||
{:main 'uxbox.view
|
||||
:parallel-build false
|
||||
:optimizations :none
|
||||
:warnings {:ns-var-clash false}
|
||||
:closure-defines options
|
||||
:language-in :ecmascript6
|
||||
:language-out :ecmascript5
|
||||
|
|
2
frontend/scripts/watch-main
Executable file
2
frontend/scripts/watch-main
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
lein trampoline run -m clojure.main scripts/watch-main.clj
|
18
frontend/scripts/watch-main.clj
Normal file
18
frontend/scripts/watch-main.clj
Normal file
|
@ -0,0 +1,18 @@
|
|||
(require '[cljs.build.api :as b])
|
||||
|
||||
(b/watch
|
||||
(b/inputs "src")
|
||||
{:main 'uxbox.main
|
||||
:parallel-build false
|
||||
:output-to "resources/public/js/main.js"
|
||||
:output-dir "resources/public/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"]
|
||||
:static-fns true
|
||||
:elide-asserts true
|
||||
:pretty-print false
|
||||
:language-in :ecmascript6
|
||||
:language-out :ecmascript5
|
||||
:verbose true})
|
|
@ -3,7 +3,6 @@
|
|||
(b/watch (b/inputs "src" "test")
|
||||
{:main 'uxbox.tests.main
|
||||
:parallel-build false
|
||||
:warnings {:ns-var-clash false}
|
||||
:output-to "out/tests.js"
|
||||
:source-map "out/tests.js.map"
|
||||
:output-dir "out/tests"
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
(b/inputs "src")
|
||||
{:main 'uxbox.worker
|
||||
:parallel-build false
|
||||
:warnings {:ns-var-clash false}
|
||||
:output-to "resources/public/js/worker.js"
|
||||
:source-map "resources/public/js/worker.js.map"
|
||||
:output-dir "resources/public/js/worker"
|
||||
|
|
Loading…
Add table
Reference in a new issue