joachim-n / ddev-drupal-core-dev

ddev addon for core development
Apache License 2.0
0 stars 1 forks source link

Add DDEV Commands for Core Development. #1

Open bhanu951 opened 3 weeks ago

bhanu951 commented 3 weeks ago

To test this add-on update use the below commands

ddev config --project-type=drupal --docroot=web --php-version=8.3
ddev start
ddev composer create joachim-n/drupal-core-development-project
ddev config --update
ddev restart

git clone https://github.com/bhanu951/ddev-drupal-core-dev.git --branch=feature/add-ddev-commands /tmp/ddev/addons/core-addon

ddev add-on get /tmp/ddev/addons/core-addon

ddev restart

To test newly commands run below commands

ddev phpcs core/modules/user/src/RegisterForm.php (from repos/drupal directory)
ddev phpcbf core/modules/user/src/RegisterForm.php (from repos/drupal directory)
ddev phpstan core/modules/user/src/RegisterForm.php (from repos/drupal directory)
ddev phpunit core/modules/user/tests/src/Functional/UserAdminTest.php (from repos/drupal directory)
ddev code-check (ddev equivalent of running sh core/scripts/dev/commit-code-check.sh)
ddev cspell-check (Checks for forbidden and new words which are not present in dictonary)
ddev install (Installs new site)
ddev drush [arguments] (from project root)