mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
enhance: add a --dev mode to publishing that pairs with shadow's watch
This commit is contained in:
committed by
Gabriel Horner
parent
ce2341506d
commit
3cd7b2d762
@@ -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")})))
|
||||
|
||||
Reference in New Issue
Block a user