Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tusharkant15's avatar

How to setup a git repo of re-usable components.

Hi!

I've built up a decent arsenal of vue components and as of now I simply copy paste the resources/assets/components folder from a previous project into the new one. While this has been working OK for the most part I recently realized that I had a bug in one of my components and I needed to go back to half a dozen projects and update the appropriate files just to fix a tiny bug.

I want to avoid this issue and setup a separate repo (outside of the main repo) so that this problem doesn't occur again. Could someone provide me with instructions on how to go about this (including production deployment). Not a git expert exactly and even the thought of nested repos make me nervous ;-P

0 likes
1 reply

Please or to participate in this conversation.