wip
This commit is contained in:
parent
b9ff6eb8c1
commit
8d3f0f51f4
3 changed files with 14 additions and 14 deletions
7
bb.edn
7
bb.edn
|
|
@ -18,8 +18,7 @@
|
|||
(fs/delete-tree ".shadow-cljs"))}
|
||||
|
||||
shadow:watch {:doc "Development build. Starts webserver and watches for changes."
|
||||
:task (clojure {:extra-env {"SCI_ELIDE_VARS" "true"}}
|
||||
"-M:dev -m shadow.cljs.devtools.cli watch main")}
|
||||
:task (build/build *command-line-args* {:action "watch"})}
|
||||
|
||||
http-server {:doc "Starts http server for serving static files"
|
||||
:requires ([babashka.http-server :as http])
|
||||
|
|
@ -37,9 +36,7 @@
|
|||
(deref (promise)))}
|
||||
|
||||
prod {:doc "Builds production artifacts."
|
||||
:task (build/release *command-line-args* #_{:wrap-cmd-fn nil #_wrap-cmd})
|
||||
#_(clojure {:extra-env {"SCI_ELIDE_VARS" "true"}}
|
||||
"-M:dev -m shadow.cljs.devtools.cli release main")}
|
||||
:task (build/build *command-line-args*)}
|
||||
|
||||
dist {:doc "Prepare dist folder for npm package"
|
||||
:depends [prod]
|
||||
|
|
|
|||
|
|
@ -43,9 +43,7 @@
|
|||
feature-configs))
|
||||
cmd')))
|
||||
|
||||
(defn build
|
||||
"Build scittle shadow builds using clojure cmd and commandline args. Features on
|
||||
classpath are automatically added"
|
||||
(defn- build*
|
||||
[cmd args]
|
||||
(let [building-outside-scittle? (not (fs/exists? "shadow-cljs.edn"))
|
||||
scittle-dir (when building-outside-scittle?
|
||||
|
|
@ -61,9 +59,14 @@
|
|||
(when building-outside-scittle?
|
||||
(fs/delete "shadow-cljs.edn"))))
|
||||
|
||||
(defn release
|
||||
"Compiles release build."
|
||||
[args & {:keys [wrap-cmd-fn] :or {wrap-cmd-fn identity}}]
|
||||
(build (wrap-cmd-fn "-M -m shadow.cljs.devtools.cli --force-spawn release main")
|
||||
args)
|
||||
(run! fs/delete (fs/glob "lib" "**.map")))
|
||||
(defn build
|
||||
"Build scittle shadow builds using clojure cmd and commandline args. Features on
|
||||
classpath are automatically added.
|
||||
|
||||
Options:
|
||||
|
||||
* :action - compile action, defaults to release, but may also be compile or watch"
|
||||
[args & {:keys [wrap-cmd-fn action] :or {wrap-cmd-fn identity
|
||||
action "release"}}]
|
||||
(build* (wrap-cmd-fn (format "-M -m shadow.cljs.devtools.cli --force-spawn %s main" action))
|
||||
args))
|
||||
|
|
|
|||
0
plugins/datascript/deps.edn
Normal file
0
plugins/datascript/deps.edn
Normal file
Loading…
Add table
Add a link
Reference in a new issue