This document explains how to set up a Drupal Starter Kits site in a local environment and contribute.
Prerequisites
Ensure that you have:
Run the
php --versioncommand to check the version of PHP.MySQL 5.7 or later
Run the
mysql --versioncommand to check the version of MySQL.Composer 2 or later
Run the
composer --versioncommand to check the version of Composer.- Git for local development
- GitHub account
Overview
The acquia_cms repository is a single super repository that contains the entire acquia_cms module codebase instead of separate, smaller repositories. This structure simplifies contributions because developers can change multiple modules simultaneously and create a single pull request for new features, bug fixes, module updates, and security releases.
After you merge the code, Travis CI pushes the changes to individual module repositories on drupal.org to synchronize the module code with the acquia_cms repository.
The following is the directory structure:
.|── composer.json|── composer.lock|── vendor|── modules ├── acquia_cms_article ├── acquia_cms_audio ├── acquia_cms_common ├── acquia_cms_component ├── acquia_cms_document ├── acquia_cms_event ├── acquia_cms_headless ├── acquia_cms_image ├── acquia_cms_page ├── acquia_cms_person ├── acquia_cms_place ├── acquia_cms_search ├── acquia_cms_site_studio ├── acquia_cms_starter ├── acquia_cms_toolbar ├── acquia_cms_tour ├── acquia_cms_videoThe root composer.json does not require acquia_cms modules or other contributed modules. The Composer Merge Plugin helps to download the additional contributed modules, libraries, and themes that each acquia_cms module provides.
The composer command parses the composer.json file of each module and merges the files with the root composer.json file. The combined composer.json file then downloads additional modules, themes, and libraries, generates the autoloader, and updates the composer.lock file.
Fork the repository
- Navigate to the acquia_cms repository.
Click Create a new fork and follow the instructions on the next page.
Download Drupal Starter Kits
Run the following commands one by one:
git clone --branch=develop [email protected]:username/acquia_cms.git projectcd projectcomposer installcomposer build:local