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"))}
|
(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 (clojure {:extra-env {"SCI_ELIDE_VARS" "true"}}
|
:task (build/build *command-line-args* {:action "watch"})}
|
||||||
"-M:dev -m shadow.cljs.devtools.cli watch main")}
|
|
||||||
|
|
||||||
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])
|
||||||
|
|
@ -37,9 +36,7 @@
|
||||||
(deref (promise)))}
|
(deref (promise)))}
|
||||||
|
|
||||||
prod {:doc "Builds production artifacts."
|
prod {:doc "Builds production artifacts."
|
||||||
:task (build/release *command-line-args* #_{:wrap-cmd-fn nil #_wrap-cmd})
|
:task (build/build *command-line-args*)}
|
||||||
#_(clojure {:extra-env {"SCI_ELIDE_VARS" "true"}}
|
|
||||||
"-M:dev -m shadow.cljs.devtools.cli release main")}
|
|
||||||
|
|
||||||
dist {:doc "Prepare dist folder for npm package"
|
dist {:doc "Prepare dist folder for npm package"
|
||||||
:depends [prod]
|
:depends [prod]
|
||||||
|
|
|
||||||
|
|
@ -43,9 +43,7 @@
|
||||||
feature-configs))
|
feature-configs))
|
||||||
cmd')))
|
cmd')))
|
||||||
|
|
||||||
(defn build
|
(defn- build*
|
||||||
"Build scittle shadow builds using clojure cmd and commandline args. Features on
|
|
||||||
classpath are automatically added"
|
|
||||||
[cmd args]
|
[cmd args]
|
||||||
(let [building-outside-scittle? (not (fs/exists? "shadow-cljs.edn"))
|
(let [building-outside-scittle? (not (fs/exists? "shadow-cljs.edn"))
|
||||||
scittle-dir (when building-outside-scittle?
|
scittle-dir (when building-outside-scittle?
|
||||||
|
|
@ -61,9 +59,14 @@
|
||||||
(when building-outside-scittle?
|
(when building-outside-scittle?
|
||||||
(fs/delete "shadow-cljs.edn"))))
|
(fs/delete "shadow-cljs.edn"))))
|
||||||
|
|
||||||
(defn release
|
(defn build
|
||||||
"Compiles release build."
|
"Build scittle shadow builds using clojure cmd and commandline args. Features on
|
||||||
[args & {:keys [wrap-cmd-fn] :or {wrap-cmd-fn identity}}]
|
classpath are automatically added.
|
||||||
(build (wrap-cmd-fn "-M -m shadow.cljs.devtools.cli --force-spawn release main")
|
|
||||||
args)
|
Options:
|
||||||
(run! fs/delete (fs/glob "lib" "**.map")))
|
|
||||||
|
* :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