Fork me on GitHub
#shadow-cljs
<
2021-02-16
>
Chris McCormick01:02:11

is there a way to run a script like you would with lumo? e.g. similar to npx shadow-cljs run ... except for .cljs files. so it would compile and then execute the script with node.

thheller08:02:13

no, that would be terrible experience. rather slow startup due to having the JVM startup. just build it with :node-script and once its built you don't need shadow-cljs or the compiler at all anymore

Michaël Salihi12:02:14

@chris358 The same way we can do with vanilla CLJS? clj -M -m cljs.main -t node -o main.js -i example.cljs

👍 3