Fix #60: dev task
This commit is contained in:
parent
1cd75fba28
commit
0fd1342144
2 changed files with 5 additions and 3 deletions
3
bb.edn
3
bb.edn
|
|
@ -18,7 +18,8 @@
|
||||||
(fs/delete-tree ".shadow-cljs"))}
|
(fs/delete-tree ".shadow-cljs"))}
|
||||||
|
|
||||||
shadow:watch {:doc "Development build. Starts webserver and watches for changes."
|
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"
|
http-server {:doc "Starts http server for serving static files"
|
||||||
:requires ([babashka.http-server :as http])
|
:requires ([babashka.http-server :as http])
|
||||||
|
|
|
||||||
|
|
@ -67,5 +67,6 @@
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
* :action - compile action, defaults to release, but may also be compile or watch"
|
* :action - compile action, defaults to release, but may also be compile or watch"
|
||||||
[{:keys [action] :or {action "release"}}]
|
[{:keys [action
|
||||||
(build* (format "-M -m shadow.cljs.devtools.cli --force-spawn %s main" action)))
|
args] :or {action "release"}}]
|
||||||
|
(build* (format "-M -m shadow.cljs.devtools.cli --force-spawn %s main %s" action (str/join " " args))))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue