Skip to content

Commit

Permalink
Merge pull request #764 from boxuk/remove-theme
Browse files Browse the repository at this point in the history
[BWP-124] Remove base-theme from repo, add to install script.
  • Loading branch information
jdamner authored Feb 27, 2025
2 parents ec5ff7b + 167d4fb commit d32f48c
Show file tree
Hide file tree
Showing 33 changed files with 11 additions and 723 deletions.
11 changes: 11 additions & 0 deletions bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ echo 'Running composer install...';

bin/docker/composer install;

if [ ! -d wp-content/themes/$PROJECT_NAME ]; then
echo 'Cloning boxuk theme...';
rm -rf ./wp-packages;
git clone https://github.com/boxuk/wp-packages.git ./wp-packages;
mv wp-packages/packages/base-theme wp-content/themes/$PROJECT_NAME;
rm -rf wp-packages;
fi

# mu-plugins can interfere with the initial installation process, rewrite the directory to disable them temporarily
mv wp-content/mu-plugins wp-content/mu-plugins-disabled

Expand Down Expand Up @@ -116,6 +124,9 @@ read -s -p "Enter a password to setup WP admin account: " ADMIN_PASSWORD
echo -e "\nSetting password...";
bin/docker/wp user update admin --user_pass=$ADMIN_PASSWORD

echo 'Activating theme...';
bin/docker/wp theme activate $PROJECT_NAME

# Enable Xdebug
echo 'Enabling Xdebug..';
docker compose exec app bash -c "sed -i 's/xdebug.mode=Off/xdebug.mode=debug/' /usr/local/etc/php/conf.d/php.ini; exit;"
Expand Down
2 changes: 0 additions & 2 deletions wp-content/themes/boxuk/.gitignore

This file was deleted.

Empty file.
Empty file.
8 changes: 0 additions & 8 deletions wp-content/themes/boxuk/functions.php

This file was deleted.

19 changes: 0 additions & 19 deletions wp-content/themes/boxuk/jest.config.js

This file was deleted.

42 changes: 0 additions & 42 deletions wp-content/themes/boxuk/package.json

This file was deleted.

69 changes: 0 additions & 69 deletions wp-content/themes/boxuk/parts/footer.html

This file was deleted.

21 changes: 0 additions & 21 deletions wp-content/themes/boxuk/parts/header.html

This file was deleted.

90 changes: 0 additions & 90 deletions wp-content/themes/boxuk/patterns/example.php

This file was deleted.

16 changes: 0 additions & 16 deletions wp-content/themes/boxuk/playwright.config.ts

This file was deleted.

85 changes: 0 additions & 85 deletions wp-content/themes/boxuk/post-type-templates/example.html

This file was deleted.

Loading

0 comments on commit d32f48c

Please sign in to comment.