diff --git a/composer.json b/composer.json index 98beafa6..07f973b3 100644 --- a/composer.json +++ b/composer.json @@ -125,6 +125,11 @@ "drush user:password editor editor", "drush user:unblock editor" ], + "drupal:rebuild": [ + "sudo rm -rf vendor web composer.lock patches.lock.json | true", + "@composer install", + "@drupal:install" + ], "drupal:run-server": [ "Composer\\Config::disableProcessTimeout", "@php -d max_execution_time=0 web/core/scripts/drupal quick-start" @@ -137,6 +142,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. Should only be used for internal development.", "drupal:run-server": "Runs Starshot using the PHP webserver and opens it in the default browser." }, "scripts-aliases": {