From 23bef6781a85fefdd0b38d460febaa3d2cb7d19d Mon Sep 17 00:00:00 2001 From: Travis Carden Date: Fri, 26 Apr 2024 16:44:36 -0400 Subject: [PATCH] Separate "drupal:quick-start" into its own "drupal:run-server" Composer script. --- composer.json | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 2593fef3..b9495b4f 100644 --- a/composer.json +++ b/composer.json @@ -125,14 +125,28 @@ "drush config:set --yes system.logging error_level verbose", "drush pm:enable --yes default_content" ], + "drupal:run-server": [ + "Composer\\Config::disableProcessTimeout", + "@php web/core/scripts/drupal quick-start" + ], "post-create-project-cmd": [ "@drupal:install", - "Composer\\Config::disableProcessTimeout", - "test -n \"$CI\" || php -d max_execution_time=0 web/core/scripts/drupal quick-start" + "test -n \"$CI\" || @drupal:run-server" ] }, "scripts-descriptions": { "drupal:install": "Installs Drupal CMS.", - "drupal:install-dev": "Installs Drupal CMS, with additional modules and configuration tweaks for development." + "drupal:install-dev": "Installs Drupal CMS, with additional modules and configuration tweaks for development.", + "drupal:run-server": "Runs Drupal CMS using the PHP webserver and opens it in the default browser." + }, + "scripts-aliases": { + "drupal:install": [ + "si", + "sin" + ], + "drupal:run-server": [ + "rs", + "serve" + ] } }