Skip to content

Add DDEV Commands for Core Development. #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 19 commits into
base: 2.0.x
Choose a base branch
from

Conversation

bhanu951
Copy link

@bhanu951 bhanu951 commented Nov 2, 2024

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)

@bhanu951 bhanu951 marked this pull request as ready for review November 2, 2024 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant