wip
This commit is contained in:
parent
b152ddf7ea
commit
b10fa0e9ca
2 changed files with 38 additions and 8 deletions
16
bb.edn
16
bb.edn
|
|
@ -1,6 +1,8 @@
|
|||
{:deps {io.github.babashka/sci.nrepl
|
||||
{:local/root "../sci.nrepl"}
|
||||
#_{:git/sha "318e39fc356652d749180f3a3efba5eb4b99d304"}}
|
||||
#_{:local/root "../sci.nrepl"}
|
||||
{:git/sha "c14b5b4ef4390ff206cdb71f763f327799f5e853"}
|
||||
io.github.babashka/http-server
|
||||
{:git/sha "b38c1f16ad2c618adae2c3b102a5520c261a7dd3"}}
|
||||
|
||||
:tasks
|
||||
{:requires ([babashka.fs :as fs]
|
||||
|
|
@ -15,14 +17,20 @@
|
|||
shadow:watch {:doc "Development build. Starts webserver and watches for changes."
|
||||
:task (clojure "-M:dev -m shadow.cljs.devtools.cli watch main")}
|
||||
|
||||
http-server {:doc "Starts http server for serving static files"
|
||||
:requires ([babashka.http-server :as http])
|
||||
:task (do (http/serve {:port 1341 :dir "resources/public"})
|
||||
(println "Serving static assets at http://localhost:1341"))}
|
||||
|
||||
browser-nrepl {:doc "Start browser nREPL"
|
||||
:requires ([sci.nrepl.browser-server :as bp])
|
||||
:task (bp/start! {})}
|
||||
|
||||
-dev {:depends [shadow:watch browser-nrepl]}
|
||||
-dev {:depends [shadow:watch browser-nrepl http-server]}
|
||||
|
||||
dev {:doc "Development build. Starts webserver and watches for changes."
|
||||
:task (run '-dev {:parallel true})}
|
||||
:task (do (run '-dev {:parallel true})
|
||||
(deref (promise)))}
|
||||
|
||||
prod {:doc "Builds production artifacts."
|
||||
:task (clojure {:extra-env {"SCI_ELIDE_VARS" "true"}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue