Add Contrib and Custom Code
This section describes how to replicate your selection of contributed modules and themes, and any custom modules or themes your development team has created in your new project structure.
Modules
On the composerify branch, make a list of the modules that will need to be re-added:
-
If you know that all the sites have the same contrib and custom modules, get the list of modules from a single representative site. You will need this list in next steps:
-
If you do not know whether the sites have the same contrib and custom modules installed, audit the modules across all sites and compile a unified list:
Contrib Modules and Themes
- In your terminal, from the
composerifybranch,cdtoupstream-configuration:
-
For each contrib module and theme in the list you've gathered
- Add the package and version with Composer. If the version starts with
8.x-, remove that and only include the version number after8.x-.
For example, if the version is
8.x-3.2, use the version number3.2:-
Confirm that only
composer.jsonhas been modified:- If anything other than
composer.jsonhas been modified, add the modified file to.gitignore.
- If anything other than
-
Commit the change:
- Add the package and version with Composer. If the version starts with
Custom Modules and Themes
To move modules, use the following commands:
To move themes, use the following commands: