Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Add "drupal:rebuild" Composer script.
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisCarden committed Apr 30, 2024
1 parent 5a84638 commit d08478b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -135,13 +140,17 @@
"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": {
"drupal:install": [
"si",
"sin"
],
"drupal:rebuild": [
"rebuild"
],
"drupal:run-server": [
"rs",
"serve"
Expand Down

0 comments on commit d08478b

Please sign in to comment.