You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would allow the user to quite easily reach shadow-cljs features that the current jack-in convenience shuts you out from. The facility doesn't stop at letting us provide custom options to common Clojure tools, though, it would allow for any command line, including calling custom scripts.
Calva could make the following substitutions available to the command line construction:
Making it still allow the user to decide at Jack-in time which shadow-build to watch. The plural substitutions would be provided as a comma separated list. So :app,:test e.g.
Just like with any Jack-in, the command line will be executed with the jackInEnv provided in Calva configuration.
Here's an example Babashka script that doesn't start a REPL at all, just echoes the aliases and cider nrepl version:
A way to make Calva Jack-in very flexible is to allow for a custom command line. Something like this setting in a connect sequence:
Would construct a fixed command line, which substitutes the cider-nrepl dependency version. So it would become:
This would allow the user to quite easily reach shadow-cljs features that the current jack-in convenience shuts you out from. The facility doesn't stop at letting us provide custom options to common Clojure tools, though, it would allow for any command line, including calling custom scripts.
Calva could make the following substitutions available to the command line construction:
From configuration:
<NREPL-VERSION>
<CIDER-NREPL-VERSION>
<CIDER-PIGGIEBACK-VERSION>
<NREPL-PORT-FILE>
Collected at Jack-in:
<PROJECT-ROOT-PATH>
<LEIN-PROFILES>
<LEIN-LAUNCH-ALIAS>
<CLJ-ALIASES>
<CLJS-LAUNCH-BUILDS>
With this the above command line could be:
Making it still allow the user to decide at Jack-in time which shadow-build to watch. The plural substitutions would be provided as a comma separated list. So
:app,:test
e.g.Just like with any Jack-in, the command line will be executed with the
jackInEnv
provided in Calva configuration.Here's an example Babashka script that doesn't start a REPL at all, just echoes the aliases and cider nrepl version:
Please comment with your thoughts on this.
The text was updated successfully, but these errors were encountered: