Fix #60: dev task
This commit is contained in:
parent
1cd75fba28
commit
0fd1342144
3
bb.edn
3
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])
|
||||
|
|
|
@ -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))))
|
||||
|
|
Loading…
Reference in a new issue