Fix #60: dev task

This commit is contained in:
Michiel Borkent 2023-05-13 10:45:10 +02:00
parent 1cd75fba28
commit 0fd1342144
2 changed files with 5 additions and 3 deletions

3
bb.edn
View file

@ -18,7 +18,8 @@
(fs/delete-tree ".shadow-cljs"))}
shadow:watch {:doc "Development build. Starts webserver and watches for changes."
:task (build/build *command-line-args* {:action "watch"})}
:task (build/build {:action "watch"
:args *command-line-args*})}
http-server {:doc "Starts http server for serving static files"
:requires ([babashka.http-server :as http])

View file

@ -67,5 +67,6 @@
Options:
* :action - compile action, defaults to release, but may also be compile or watch"
[{:keys [action] :or {action "release"}}]
(build* (format "-M -m shadow.cljs.devtools.cli --force-spawn %s main" action)))
[{:keys [action
args] :or {action "release"}}]
(build* (format "-M -m shadow.cljs.devtools.cli --force-spawn %s main %s" action (str/join " " args))))