Skip to content
Snippets Groups Projects
Commit 369e31e2 authored by jurgenhaas's avatar jurgenhaas
Browse files

Add support for Drupal 9 project templates

parent fdb2df4f
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ function create { ...@@ -55,7 +55,7 @@ function create {
# Start container # Start container
a d4d up a d4d up
sleep 2 sleep 2
drush --no-interaction si config_installer drush --no-interaction si ${SITE_INSTALL_ARGS}
# Init site config values # Init site config values
if [[ -f "drush/Commands/dev_modules/dev_modules.info.yml" ]]; then if [[ -f "drush/Commands/dev_modules/dev_modules.info.yml" ]]; then
...@@ -110,10 +110,12 @@ function initialSetup { ...@@ -110,10 +110,12 @@ function initialSetup {
echo "" echo ""
echo "Options to start:" echo "Options to start:"
echo " 0 none: start with an empty container" echo " 0 none: start with an empty container"
echo " 1 LakeDrops Drupal 8 project template" echo " 1 LakeDrops Drupal 9 project template"
echo " 2 Drupal's community project template" echo " 2 LakeDrops Drupal 8 project template"
echo " 3 Custom project template" echo " 3 drupal.org recommended project template (Drupal 9)"
echo " 4 Existing git repository" echo " 4 Drupal's community project template (Drupal 8)"
echo " 5 Custom project template"
echo " 6 Existing git repository"
echo "" echo ""
echo "" echo ""
...@@ -128,18 +130,32 @@ function initialSetup { ...@@ -128,18 +130,32 @@ function initialSetup {
;; ;;
1 ) 1 )
PROJECT="lakedrops/d8-project" PROJECT="lakedrops/d9-project"
SITE_INSTALL_ARGS="--existing-config"
create create
break break
;; ;;
2 ) 2 )
PROJECT="drupal-composer/drupal-project:8.x-dev" PROJECT="lakedrops/d8-project"
SITE_INSTALL_ARGS="config_installer"
create create
break break
;; ;;
3 ) 3 )
PROJECT="drupal/recommended-project"
create
break
;;
4 )
PROJECT="drupal-composer/drupal-project:8.x-dev"
create
break
;;
5 )
# shellcheck disable=SC2162 # shellcheck disable=SC2162
read -p "Custom project template: " PROJECT read -p "Custom project template: " PROJECT
# shellcheck disable=SC2162 # shellcheck disable=SC2162
...@@ -148,7 +164,7 @@ function initialSetup { ...@@ -148,7 +164,7 @@ function initialSetup {
break break
;; ;;
4 ) 6 )
# shellcheck disable=SC2162 # shellcheck disable=SC2162
read -p "Repository URL: " REPOSITORY read -p "Repository URL: " REPOSITORY
if [[ -n "${REPOSITORY}" ]]; then if [[ -n "${REPOSITORY}" ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment