Closed cch1 closed 3 years ago
Nice, thanks! While we're doing this change, we can also get rid of the {:port port}
argument to mount/start
-- just passing the port to mount/with-args
should be sufficient, I think.
I'm not that familiar (yet) with the syntax of mount, so I'll have to leave that to you. I did start down a related path of having the mount calls all be in braid.core
(none in braid.dev.core
) but in the dev environment you clearly need to apply an exception to the components to be started. I wasn't sure how you might want to achieve that... Still, DRYing up the mount start/stop into just braid.core
seems like a good goal for those developing using braid.dev.core
. My development approach does not use braid.dev.core
so I don't have a vested interest in making that change.
I did start down a related path of having the mount calls all be in braid.core (none in braid.dev.core) but in the dev environment you clearly need to apply an exception to the components to be started
I was also thinking of that, but as you say, dev wants to apply some exceptions, so this is probably fine for now.
I will merge and make that little tweak. Thanks!
When consuming braid in another application, the ability to stop braid is valuable. Without this PR, the
dev-src
path needs to be on the classpath but that is challenging with both lein and Clojure CLI when braid is a dependency.