Closed shaal closed 1 year ago
Open the branch in Web Editor • VS Code • Insiders
Open Preview
The changes primarily focus on improving the setup process for Drupal projects in Gitpod. The setup scripts have been modularized into separate files, each handling a specific part of the setup process such as composer setup, Drupal core setup, and Drupal contrib setup. This makes the code more maintainable and easier to understand. Additionally, the scripts now handle different types of Drupal projects and create symlinks for projects without a composer.json
file.
File | Summary |
---|---|
.../drupalpod-setup/composer_setup.sh | Adds a script that sets up the composer.json and composer.lock files, fixes Composer 2.2 allow-plugins configuration, and adds the project source code as a symlink. |
.../drupalpod-setup/drupal_setup_contrib.sh | Adds a script that creates a symlink for Drupal projects without a composer.json file based on the DP_PROJECT_TYPE variable. It also modifies the composer configuration and adds the project as a dependency. |
.../drupalpod-setup/drupal_setup_core.sh | Adds a script that sets up composer repositories, creates symbolic links, and creates folders for running tests. |
.../drupalpod-setup/drupalpod-setup.sh | Modifies the main setup script to include the new setup scripts, checks if the project directory exists before cloning it, and modifies the composer configuration. |
.../drupal/install-essential-packages.sh | Modifies a script to apply different actions based on the value of the DP_PROJECT_TYPE variable, including patching files, adding a project as a symlink, and running different scripts. |
🐇💻
"In the land of code where the shadows lie,
We've made some changes, oh me, oh my!
Setup's now modular, clean, and spry,
Making Drupal sing, under Gitpod's sky.
Symlinks for projects, no
composer.json
? No cry!With these changes, we aim high,
To the moon, our code will fly!" 🚀🌕
Summary by CodeRabbit
composer_setup.sh
,drupal_setup_core.sh
, anddrupal_setup_contrib.sh
), improving maintainability and readability.drupal_setup_core.sh
script.