From d08478b5b7e5349e73bc406a407c5f320be9c934 Mon Sep 17 00:00:00 2001 From: Travis Carden Date: Mon, 29 Apr 2024 14:19:58 -0400 Subject: [PATCH] Add "drupal:rebuild" Composer script. --- composer.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/composer.json b/composer.json index 02a39b83..622907f9 100644 --- a/composer.json +++ b/composer.json @@ -123,6 +123,11 @@ "drush config:set --yes system.logging error_level verbose", "drush pm:enable --yes default_content" ], + "drupal:rebuild": [ + "sudo rm -rf vendor web composer.lock | true", + "composer install", + "@drupal:install" + ], "drupal:run-server": [ "Composer\\Config::disableProcessTimeout", "@php -d max_execution_time=0 web/core/scripts/drupal quick-start" @@ -135,6 +140,7 @@ "scripts-descriptions": { "drupal:install": "Installs Starshot.", "drupal:install-dev": "Installs Starshot, with additional modules and configuration tweaks for development.", + "drupal:rebuild": "Rebuilds the codebase and reinstalls Starshot from scratch.", "drupal:run-server": "Runs Starshot using the PHP webserver and opens it in the default browser." }, "scripts-aliases": { @@ -142,6 +148,9 @@ "si", "sin" ], + "drupal:rebuild": [ + "rebuild" + ], "drupal:run-server": [ "rs", "serve"