Skip to content

Commit

Permalink
Removed create-project and logo commands, now they are scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjol committed Dec 10, 2024
1 parent a30a873 commit d8035ce
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 232 deletions.
8 changes: 3 additions & 5 deletions commands/host/aljibe-assistant
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ fi
show_logo
create_project $AUTO

echo -e "\e[30;48;5;2m Aljibe is now installed, you can access your site here:\e[0m"
ddev drush uli
ddev status

## echo "Removing aljibe assistant addon"
## Autoremove assistant
## ddev get --remove ddev-aljibe-assistant
echo -e "\e[30;48;5;2m Aljibe is now installed, you can access your site here:\e[0m"
ddev drush uli
185 changes: 0 additions & 185 deletions commands/host/aljibe-create-project

This file was deleted.

28 changes: 0 additions & 28 deletions commands/host/aljibe-logo

This file was deleted.

29 changes: 15 additions & 14 deletions commands/host/includes/create_project.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# ddev-generated

# Constants
DRUSH_ALIASES_FOLDER="./drush/sites"
Expand All @@ -14,13 +15,13 @@ create_project() {
echo -e "${GREEN}Launching assistant to configure the environment${NC}"
echo ""

setConfFiles
setUpGit
initDdev
installDrupal
createDirectories
createSubTheme
initGrumpPhp
configure_project
setup_git
init_ddev
install_drupal
create_behat_directories
create_sub_theme
init_grumphp
}

# Process example files
Expand All @@ -35,7 +36,7 @@ processExampleFile() {
}

# Setup several configuration files
setConfFiles() {
configure_project() {
cd ${DDEV_APPROOT} || exit

if [ "$AUTO" == "0" ]; then
Expand Down Expand Up @@ -81,7 +82,7 @@ setConfFiles() {
}

# Setup git repo
setUpGit() {
setup_git() {
if [ "$AUTO" == "0" ]; then
echo -e "${CYAN}Do you want to initialize a git repository for your new project?${NC} [Y/n]"
read INITIALIZE_GIT
Expand All @@ -97,16 +98,16 @@ setUpGit() {
fi
}

initDdev() {
init_ddev() {
ddev start
ddev composer install
}

initGrumpPhp() {
init_grumphp() {
ddev exec grumphp git:init
}

installDrupal() {
install_drupal() {
if [ "$AUTO" == "0" ]; then
echo -e "${CYAN}Do you want to install Drupal?${NC} [Y/n]"
read INSTALL_DRUPAL
Expand All @@ -128,7 +129,7 @@ installDrupal() {
fi
}

createDirectories() {
create_behat_directories() {
BEHAT_DIR="./web/sites/default/files/behat"
BEHAT_DIR_ERRORS="$BEHAT_DIR/errors"

Expand All @@ -143,7 +144,7 @@ createDirectories() {
fi
}

createSubTheme() {
create_sub_theme() {
if [ "$AUTO" == "0" ]; then
echo -e "${CYAN}Do you want to create a Radix sub-theme?${NC} [Y/n] "
read CREATE_SUB_THEME
Expand Down
1 change: 1 addition & 0 deletions commands/host/includes/logo.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# ddev-generated

# ANSI color codes
brown='\033[0;33m'
Expand Down

0 comments on commit d8035ce

Please sign in to comment.