shadow-cljs does not allow for dependencies to be exchanged for different build targts, or at least I did not figure out how to do it. Also I do prefer to explicitly express different functionality.
With this fork I simply renamed the debux namespace to debux-stubs for all stubs intendend for production builds.
That way one can use shadow-cljs' :ns-aliases feature to switch between the two libraries.
philoskim/debux {:mvn/version "0.7.9"}
apfelstrudels/debux-stubs {:git/url "https://github.com/apfelstrudels/debux-stubs.git", :sha "34b1269addcf4c47e27387ba7b61cd6602870314"}:release {:build-options {:ns-aliases {debux.cs.core debux-stubs.cs.core}}}
-
debux-stubslibrary is the production version ofdebux(https://github.com/philoskim/debux) library. -
Refer to Two Libraries section for the relationship between
debuxanddebux-stubslibraries.
-
To include
debux-stubsin your project, simply add the following to your project.clj dependencies.
[philoskim/debux-stubs "0.7.9"]