0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

feat(frontend): add "build-tests" command

This commit is contained in:
Andrey Antukh 2019-06-20 22:34:42 +02:00
parent a26f480d02
commit 7103b35686

View file

@ -46,7 +46,7 @@
(defmethod task "dist"
[[_ name]]
(api/build (api/inputs "src" "test")
(api/build (api/inputs "src")
(merge default-build-options
(get-output-options name true ::path)
{:optimizations :advanced
@ -55,11 +55,23 @@
(defmethod task "build"
[[_ name]]
(api/build (api/inputs "src" "test")
(api/build (api/inputs "src")
(merge default-build-options
(get-output-options name false ::path)
{:optimizations :simple})))
(defmethod task "build-tests"
[& args]
(api/build (api/inputs "src" "test")
(assoc default-build-options
:main 'uxbox.tests.main
:verbose true
:target :nodejs
:source-map true
:output-to "target/tests/main.js"
:output-dir "target/tests/main"
:optimizations :none)))
(defmethod task "figwheel"
[args]
(figwheel/start