Skip to content

Commit

Permalink
Fix #60: dev task
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed May 13, 2023
1 parent 1cd75fb commit 0fd1342
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
5 changes: 3 additions & 2 deletions build/src/scittle/build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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))))

0 comments on commit 0fd1342

Please sign in to comment.