Closed LuchoTurtle closed 1 year ago
@LuchoTurtle thanks for opening this issue 👍 to highlight that we hadn't linked to our tutorial that covers most of these things ... ⏳ please see: https://github.com/dwyl/learn-elixir/pull/184/ 🙏
Closed due to #184 . Thanks @nelsonic !
Anyone reading this in the future, the answer is: https://github.com/dwyl/learn-elixir/blob/main/code-reuse-hexpm.md
As I'm starting my Elixir journey, I'm curious how more seasoned developers create and publish their own packages. I know there are tons, and tons and tons of resources out there.
But I'd like to know more about how developers usually test their packages as they implement their features. I've seen three patterns pop up:
mix phx.new
), duplicating the code as they go and testing the package within Phoenix.iex -S mix
and testing their functions with mock parameters.I'm personally using a mix between the first and third option but I'm curious if there are any more advantageous or efficient ways of knowing your package won't break as soon as it's released 😛 .