Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions commands/web/xb-composer-reqs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

## #ddev-generated
## Description: Adds nice dependencies you want to have for e.g. running tests.
## Usage: xb-composer-reqs
## Example: ddev xb-composer-reqs.
## ExecRaw: false
## Flags: []
## AutocompleteTerms: []

cd "$DDEV_COMPOSER_ROOT/$DDEV_DOCROOT" || exit 1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now we can use

ddev . composer -d /var/www/html/web/modules/contrib/canvas run install-dev-deps

and will be consistent with those not using ddev. We should still provide an easier command here.

composer require -W drush/drush
composer require --dev -W league/openapi-psr7-validator \
webflo/drupal-finder \
mglaman/phpstan-drupal \
devizzent/cebe-php-openapi \
jangregor/phpstan-prophecy \
drupal/config_inspector:2.1.x-dev
Loading