Skip to main content
Last Reviewed: 2022-12-12

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

  1. In your terminal, from the composerify branch, cd to upstream-configuration:
  1. For each contrib module and theme in the list you've gathered

    1. Add the package and version with Composer. If the version starts with 8.x-, remove that and only include the version number after 8.x-.

    For example, if the version is 8.x-3.2, use the version number 3.2:

    1. Confirm that only composer.json has been modified:

      • If anything other than composer.json has been modified, add the modified file to .gitignore.
    2. Commit the change:

Custom Modules and Themes

To move modules, use the following commands:

To move themes, use the following commands: