File tree Expand file tree Collapse file tree 10 files changed +22
-1
lines changed Expand file tree Collapse file tree 10 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 77# # Example: "ddev eslint"
88# # ExecRaw: true
99
10+ set -eu -o pipefail
11+
1012if " $DDEV_DOCROOT /core/node_modules/.bin/eslint" --version > /dev/null ; then
1113 # Configure prettier
1214 test -e .prettierrc.json || ln -s $DDEV_DOCROOT /core/.prettierrc.json .
Original file line number Diff line number Diff line change 77# # Example: "ddev expand-composer-json ctools"
88# # ExecRaw: true
99
10+ set -eu -o pipefail
11+
1012export _WEB_ROOT=$DDEV_DOCROOT
1113cd " $DDEV_COMPOSER_ROOT " || exit
1214curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/default-ref/scripts/expand_composer_json.php
15+ _ddev_drupal_contrib_empty_composer=false
1316if [[ ! -f composer.json ]]; then
1417 echo " {}" > composer.json
1518 _ddev_drupal_contrib_empty_composer=true
Original file line number Diff line number Diff line change 77# # Example: "ddev nightwatch"
88# # ExecRaw: true
99
10+ set -eu -o pipefail
11+
1012yarn --cwd " $DDEV_DOCROOT /core" test:nightwatch " $DDEV_APPROOT /$DDEV_DOCROOT /$DRUPAL_PROJECTS_PATH /" " $@ "
Original file line number Diff line number Diff line change 77# # Example: "ddev phpcbf" or "ddev phpcbf -n"
88# # ExecRaw: true
99
10+ set -eu -o pipefail
11+
1012if ! command -v phpcbf > /dev/null; then
1113 echo " phpcbf is not available. You may need to 'ddev composer install'"
1214 exit 1
Original file line number Diff line number Diff line change 77# # Example: "ddev phpcs" or "ddev phpcs -n"
88# # ExecRaw: true
99
10+ set -eu -o pipefail
11+
1012if ! command -v phpcs > /dev/null; then
1113 echo " phpcs is not available. You may need to 'ddev composer install'"
1214 exit 1
Original file line number Diff line number Diff line change 77# # Example: "ddev phpstan" or "ddev phpstan -n"
88# # ExecRaw: true
99
10+ set -eu -o pipefail
11+
1012if ! command -v phpstan > /dev/null; then
1113 echo " phpstan is not available. You may need to 'ddev poser'"
1214 exit 1
Original file line number Diff line number Diff line change 77# # Example: "ddev phpunit" or "ddev phpunit --stop-on-failure"
88# # ExecRaw: true
99
10+ set -eu -o pipefail
11+
1012if ! command -v phpunit > /dev/null; then
1113 echo " phpunit is not available. You may need to 'ddev composer install'"
1214 exit 1
Original file line number Diff line number Diff line change 77# # Example: "ddev poser" or "ddev poser --prefer-source"
88# # ExecRaw: true
99
10+ set -eu -o pipefail
11+
1012export COMPOSER=composer.contrib.json
11- .ddev/commands/web/expand-composer-json " $DDEV_PROJECT_NAME "
13+ .ddev/commands/web/expand-composer-json
1214composer install " $@ "
1315# The -f flag suppresses errors if lock file does not exist.
1416rm -f composer.contrib.json composer.contrib.lock
Original file line number Diff line number Diff line change 77# # Example: "ddev stylelint"
88# # ExecRaw: true
99
10+ set -eu -o pipefail
11+
1012if $DDEV_DOCROOT /core/node_modules/.bin/stylelint --version > /dev/null ; then
1113 # Change directory to the project root folder
1214 cd " $DDEV_DOCROOT /$DRUPAL_PROJECTS_PATH /${DDEV_SITENAME// -/ _} " || exit
Original file line number Diff line number Diff line change 77# # Example: "ddev symlink-project"
88# # ExecRaw: true
99
10+ set -eu -o pipefail
11+
1012export _WEB_ROOT=$DDEV_DOCROOT
1113# todo use more dynamic ref.
1214cd " $DDEV_COMPOSER_ROOT " || exit
You can’t perform that action at this time.
0 commit comments