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
The cljs build api has a :watch-fn option that can be passed to execute a function after a successful build.
I've used this in the past to run some necessary project-specific side-effects.
Now that I'm trying to switch to lein and lein-cljsbuild, I tried to replicate this using the :notify-command option, but this doesn't work quite the same.
I specified :notify-command to be something like lein run -m clojure.main scripts/after-build.cljs. Then I booted cljs-build's auto and made a change to my file. If the change could be compiled properly, then it worked fine.
But if the change breaks compilation, then it goes into a compile loop attempting to compile over and over. Finally, when the build compiles again, it executes the notify-command once for every build attempt resulting in many invocations of the command.
Is there any chance lein-cljsbuils could add support for the :watch-fn compiler option?
The text was updated successfully, but these errors were encountered:
The cljs build api has a
:watch-fn
option that can be passed to execute a function after a successful build.I've used this in the past to run some necessary project-specific side-effects.
Now that I'm trying to switch to lein and lein-cljsbuild, I tried to replicate this using the
:notify-command
option, but this doesn't work quite the same.I specified
:notify-command
to be something likelein run -m clojure.main scripts/after-build.cljs
. Then I booted cljs-build'sauto
and made a change to my file. If the change could be compiled properly, then it worked fine.But if the change breaks compilation, then it goes into a compile loop attempting to compile over and over. Finally, when the build compiles again, it executes the notify-command once for every build attempt resulting in many invocations of the command.
Is there any chance lein-cljsbuils could add support for the
:watch-fn
compiler option?The text was updated successfully, but these errors were encountered: