Answer the question
In order to leave comments, you need to log in
How to organize a project or two repositories into one folder?
I'm scratching my head about how best to organize the structure of the project.
It is written:
1. A framework with a certain folder structure.
2. CMS based on this framework.
The folder structure in the framework is as follows:
common - resources common to the system (JS, CSS frameworks) files - files saved in the system by the user (uploads) html - layout inc - main system folder app - application-specific classes (empty) ctrl - controllers (empty) lib - framework base class library test - tests tmpl - templates (there is a default folder from the framework, the rest is in .gitignore) tmp - temporary files
Answer the question
In order to leave comments, you need to log in
As long as you have only 2 components planned, the user may be allowed to have one more for their improvements. Each of them can replace some files of a deeper layer with their own, and use these overlapped ones if necessary. It is better when the code of different levels is not mixed.
Surely it is possible to make folders in the framework for these “overlays”, essentially repeating the original structure, and one function to determine the path for any used file that searches in these three (and not 100500) possible places ... And use all the files through it ...
Although - this is an option to remake the framework, and this may not be possible. You can try to keep two repositories of DIFFERENT SLEs in the same folder - git and hg, for example, or git and svn. And for each of these systems, keep your own set of ignore lists and maintain it ... On the other hand, if the CMS makes its own changes to the files (the same templates, for example) of the framework, then you will need one file in two versions, and in one folder of this not to do.
There is an option to have different branches of the same repository, and from time to time to merge into a branch with CMS without merging edits from the framework branch ... Also a possible option, yes ... Maybe even the best in the described situation. Did you write about this option in the UPD?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question