From 0fd134214455c7d6c3a6bbcf98bedae37f1ffd22 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sat, 13 May 2023 10:45:10 +0200 Subject: [PATCH] Fix #60: dev task --- bb.edn | 3 ++- build/src/scittle/build.clj | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bb.edn b/bb.edn index 7f49334..88220af 100644 --- a/bb.edn +++ b/bb.edn @@ -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]) diff --git a/build/src/scittle/build.clj b/build/src/scittle/build.clj index 8586003..1e17a37 100644 --- a/build/src/scittle/build.clj +++ b/build/src/scittle/build.clj @@ -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))))