enhance: add a --dev mode to publishing that pairs with shadow's watch

This commit is contained in:
Gabriel Horner
2024-01-22 14:35:36 -05:00
committed by Gabriel Horner
parent ce2341506d
commit 3cd7b2d762
4 changed files with 29 additions and 15 deletions

View File

@@ -12,7 +12,7 @@
(defn -main
[& args]
(when-not (= 3 (count args))
(when (< (count args) 3)
(println "Usage: $0 STATIC-DIR GRAPH-DIR OUT-DIR")
(js/process.exit 1))
(let [[static-dir graph-dir output-path]
@@ -23,4 +23,4 @@
static-dir
graph-dir
output-path
{:repo-config repo-config :ui/theme "dark" :ui/radix-color :purple})))
{:repo-config repo-config :ui/theme "dark" :ui/radix-color :purple :dev? (contains? (set args) "--dev")})))