How To Build Vue Components That Play Nice - Vue.js Developers

Very few people write Vue components originally intending them to be open-sourced. Most of us start out writing components for ourselves - we have a problem, and then decide to solve it by building a component. Sometimes we find ourselves wanting to solve the same problem in new locations in our codebase, and so we take our component and refactor it a bit to make it reusable. Then we want to use it in a different project, and so we move it out into an independent package. And then we think "hey, why not share this with the world?", and so we open-source the component.


This is a companion discussion topic for the original entry at https://vuejsdevelopers.com/2018/06/18/vue-components-play-nicely/