Answer the question
In order to leave comments, you need to log in
How do you organize the simultaneous development of the library and the application that uses it?
I often have a situation when, in the process of developing a project, a library is created right in it, which is essentially a separate independent solution and could be used in other projects. In other words, I want to cut it out of the main project and put it in a separate repository, pulling it into the project as a vendor. But due to the fact that I still have not found a convenient scenario for such a situation, many of my libraries either moved from project to project by simply copying files, or remained there, embodied in new projects by other implementations.
I believe that the problem is that as soon as a lib is cut into a separate repository, then it will enter the main project through vendors, and its further edits will be carried out within a separate project outside the main environment. It seems to me that this will add some complexity, especially at the initial stages, when there are many changes to be made to both projects. I thought that there might be some well-known strategy for such cases - for example, in some way you can tell the dependency manager that this package is your own project, and it needs to be cloned and considered simultaneously and as part of the main project, and as an independent.
Are nested repositories suitable for this purpose? In general, any advice on the topic is welcome.
UPD: I figured out how to simplify the question. How to keep the ability to make changes to the library directly in the main project without having to commit them to the repository until a certain point?
Answer the question
In order to leave comments, you need to log in
You can pull
dependencies from the
directory :
https://getcomposer.org/doc/05-repositories.md#path
"config": {
"preferred-install": {
"my/lib": "source"
}
},
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question