How can I use spawn instead of exec? I tried but got ENOENT errors.
(defui build-configuration [this]
[:button {:type "button"
:style {:margin-left 15}}
"Build"]
:click #(do
(when (:builder @state)
(kill-process (:builder @state)))
(let [builder (.exec child-process (str "cd " (:path @this)
(if (= (:build @this)
"dev")
(str (if (=
(:platform @this) "android")
" && adb
reverse tcp:8081 tcp:8081 && adb reverse tcp:3449 tcp:3449"
"")
" && re-natal
use-" (:platform @this) "-device " (:device @this)
" && re-natal
use-figwheel && lein figwheel " (:platform @this))
" && lein
prod-build")))]
(-> (.-stdout builder)
(.on "data" (fn[data]
(println data))))
(-> (.-stderr builder)
(.on "data" (fn[data]
(println data))))
(swap! state assoc :builder builder))))
--
You received this message because you are subscribed to the Google Groups
"Light Table Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.