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:
parent
a26f480d02
commit
7103b35686
1 changed files with 14 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue