mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 14:42:56 +00:00
Add bench code and update all scripts.
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
lein trampoline run -m clojure.main scripts/build.clj
|
||||
2
scripts/build-bench
Executable file
2
scripts/build-bench
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
lein trampoline run -m clojure.main scripts/build-bench.clj
|
||||
13
scripts/build-bench.clj
Normal file
13
scripts/build-bench.clj
Normal file
@@ -0,0 +1,13 @@
|
||||
(require '[cljs.build.api :as b])
|
||||
|
||||
(b/build
|
||||
(b/inputs "vendor" "dev")
|
||||
{:main 'bench.core
|
||||
:output-to "out/bench.js"
|
||||
:output-dir "out"
|
||||
:parallel-build false
|
||||
:optimizations :simple
|
||||
:language-in :ecmascript5
|
||||
:language-out :ecmascript5
|
||||
:target :nodejs
|
||||
:verbose true})
|
||||
2
scripts/build-tests
Executable file
2
scripts/build-tests
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
lein trampoline run -m clojure.main scripts/build-tests.clj
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
(let [start (System/nanoTime)]
|
||||
(b/build
|
||||
(b/inputs "src" "test")
|
||||
(b/inputs "src" "vendor" "test")
|
||||
{:main 'uxbox.test-runner
|
||||
:output-to "out/tests.js"
|
||||
:output-dir "out"
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
(let [start (System/nanoTime)]
|
||||
(b/build
|
||||
(b/inputs "src")
|
||||
(b/inputs "src" "vendor")
|
||||
{:main 'uxbox.core
|
||||
:parallel-build false
|
||||
:warnings {:ns-var-clash false}
|
||||
|
||||
@@ -11,13 +11,15 @@
|
||||
:all-builds
|
||||
[{:id "dev"
|
||||
:figwheel {:on-jsload "uxbox.ui/init"}
|
||||
:source-paths ["src"]
|
||||
:source-paths ["src" "vendor"]
|
||||
:compiler {:main 'uxbox.core
|
||||
:asset-path "js"
|
||||
:parallel-build false
|
||||
:optimizations :none
|
||||
;; :closure-defines {"uxbox.repo.core.url"
|
||||
;; "https://test.uxbox.io/api"}
|
||||
:closure-defines {"uxbox.repo.core.url"
|
||||
"https://test.uxbox.io/api"}
|
||||
"http://localhost:6060/api"}
|
||||
:warnings {:ns-var-clash false}
|
||||
:pretty-print true
|
||||
:language-in :ecmascript5
|
||||
|
||||
2
scripts/watch-bench
Executable file
2
scripts/watch-bench
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
lein trampoline run -m clojure.main scripts/watch-bench.clj
|
||||
14
scripts/watch-bench.clj
Normal file
14
scripts/watch-bench.clj
Normal file
@@ -0,0 +1,14 @@
|
||||
(require '[cljs.build.api :as b])
|
||||
|
||||
(b/watch
|
||||
(b/inputs "vendor" "dev")
|
||||
{:main 'bench.core
|
||||
:output-to "out/bench.js"
|
||||
:output-dir "out"
|
||||
:parallel-build false
|
||||
:optimizations :simple
|
||||
:pretty-print true
|
||||
:target :nodejs
|
||||
:language-in :ecmascript6
|
||||
:language-out :ecmascript5
|
||||
:verbose true})
|
||||
@@ -4,7 +4,7 @@
|
||||
(alter-var-root #'cljs.tagged-literals/*cljs-data-readers*
|
||||
assoc 'ux/tr (fn [v] `(uxbox.locales/tr ~v)))
|
||||
|
||||
(b/watch (b/inputs "src" "test")
|
||||
(b/watch (b/inputs "src" "vendor" "test")
|
||||
{:main 'uxbox.test-runner
|
||||
:output-to "out/tests.js"
|
||||
:output-dir "out"
|
||||
Reference in New Issue
Block a user