alias sdc="npx shadow-cljs"
I’m personally not interested in writing a package manager.
I recently added
clj-eval which can eval Clojure (not CLJS) code from the command line in the
shadow.user namespace. The intent here is to be able to run things in a scripted way.
cat script.clj | shadow-cljs clj-eval - with
Or just simply
shadow-cljs clj-eval "(shadow/release :build)" "(+ 1 2)".
I will also add
clj-run similar to
lein run -m some.ns/fn and more args to directly calling a clojure fn. I hope that someone wants to write a
shadow-cljs run some.lib/deploy-to-clojars fn. Since the code will be executed in the context of the
shadow-cljs process it has full access to its API. I hope to extend this API to support more tooling needs. It will probably mirror exactly what the new
clojure tool does. It might even just use that.