Skip to content

Commit 35b0dbc

Browse files
committed
#47 Streamline development process, fix phpstan.
1 parent 2dae56b commit 35b0dbc

File tree

2 files changed

+10
-20
lines changed

2 files changed

+10
-20
lines changed

.lando/build

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ composer create-project drupal/recommended-project "$proj"
2626

2727
chmod 755 "$default"
2828
rm -f "$default/settings.php"
29-
ln -s "$pingroot/settings.php" "$default/"
30-
ln -s "$pingroot/_ping.custom.php" "$webroot/"
31-
ln -s "$pingroot/_ping.php" "$webroot/"
32-
chmod 644 "$pingroot/settings.php"
29+
ln -s "$app/settings.php" "$default/"
30+
ln -s "$app/_ping.custom.php" "$webroot/"
31+
ln -s "$app/_ping.php" "$webroot/"
32+
chmod 644 "$app/settings.php"
3333

3434
cd "$proj"
3535
composer require --dev drush/drush
36-
composer require 'wunderio/code-quality:^2' --dev
37-
composer require 'phpunit/phpunit:^9' --dev
36+
composer require 'wunderio/code-quality:2.3.0' --dev
37+
composer require 'phpunit/phpunit:^9' --dev

README.md

+4-14
Original file line numberDiff line numberDiff line change
@@ -173,21 +173,11 @@ If earlier fails (is empty), then next one is tried.
173173

174174
### Setting up development environment
175175

176-
1. Clone development and testing environment
177-
* `git clone [email protected]:wunderio/drupal-project.git ~/projects/drupal-ping`
178-
* Yes, save it as `drupal-ping`.
176+
1. Clone the ping project
177+
`git clone [email protected]:wunderio/drupal-ping.git`
179178
1. `cd drupal-ping/`
180-
1. Clone the ping project itself
181-
* `git clone [email protected]:wunderio/drupal-ping.git`
182-
* Yes, save it as `drupal-ping` too, inside the folder of the same name. It is the actual repo we are going to work with.
183-
* Checkout or create your development branch.
184-
1. Link `.lando.yml`
185-
* `rm -f .lando.yml` - at the top-level folder, remove the Lando conf file.
186-
* `ln drupal-ping/.lando.yml` - link the Lando conf from the ping repo folder. Don't create this as a soft (`-s`) link because Lando would mount the project where the original file is. Therefore create the hard link which is indistinguishable for Lando.
187-
1. Link `.lando/`
188-
* `rm -rf .lando` - at the top-level folder, remove the Lando folder.
189-
* `ln -s drupal-ping/.lando` - link the Lando scripts folder from the ping repo folder.
190-
1. `lando start`
179+
1. Checkout or create your development branch.
180+
1. Start Lando `lando start`
191181
1. Note that the Drupal install will mess up `settings.php` a bit, don't commit.
192182
1. https://ping.lndo.site/_ping.php
193183
1. `lando scan`

0 commit comments

Comments
 (0)