File tree Expand file tree Collapse file tree 10 files changed +9
-9
lines changed Expand file tree Collapse file tree 10 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,11 @@ web_environment:
96
96
- DRUPAL_PROJECTS_PATH=modules
97
97
` ` `
98
98
99
- Then restart DDEV by running `ddev restart`.
99
+ Then run `ddev restart` and then `ddev symlink-project` to update the symlink location.
100
+
101
+ All [ddev-drupal-contrib commands](#commands) run against your project code in the configured symlink location.
102
+
103
+ To use with Drupal themes, set `DRUPAL_PROJECTS_PATH=themes/custom` in your config.
100
104
101
105
# # Example of successful test
102
106
Original file line number Diff line number Diff line change 7
7
# # Example: "ddev eslint"
8
8
# # ExecRaw: true
9
9
10
- DRUPAL_PROJECTS_PATH=${DRUPAL_PROJECTS_PATH:- modules/ custom}
11
10
if " $DDEV_DOCROOT /core/node_modules/.bin/eslint" --version > /dev/null ; then
12
11
# Configure prettier
13
12
test -e .prettierrc.json || ln -s $DDEV_DOCROOT /core/.prettierrc.json .
Original file line number Diff line number Diff line change 7
7
# # Example: "ddev nightwatch"
8
8
# # ExecRaw: true
9
9
10
- DRUPAL_PROJECTS_PATH=${DRUPAL_PROJECTS_PATH:- modules/ custom}
11
10
yarn --cwd " $DDEV_DOCROOT /core" test:nightwatch " $DDEV_COMPOSER_ROOT /$DDEV_DOCROOT /$DRUPAL_PROJECTS_PATH /" " $@ "
Original file line number Diff line number Diff line change 7
7
# # Example: "ddev phpcbf" or "ddev phpcbf -n"
8
8
# # ExecRaw: true
9
9
10
- DRUPAL_PROJECTS_PATH=${DRUPAL_PROJECTS_PATH:- modules/ custom}
11
10
if ! command -v phpcbf > /dev/null; then
12
11
echo " phpcbf is not available. You may need to 'ddev composer install'"
13
12
exit 1
Original file line number Diff line number Diff line change 7
7
# # Example: "ddev phpcs" or "ddev phpcs -n"
8
8
# # ExecRaw: true
9
9
10
- DRUPAL_PROJECTS_PATH=${DRUPAL_PROJECTS_PATH:- modules/ custom}
11
10
if ! command -v phpcs > /dev/null; then
12
11
echo " phpcs is not available. You may need to 'ddev composer install'"
13
12
exit 1
Original file line number Diff line number Diff line change 7
7
# # Example: "ddev phpstan" or "ddev phpstan -n"
8
8
# # ExecRaw: true
9
9
10
- DRUPAL_PROJECTS_PATH=${DRUPAL_PROJECTS_PATH:- modules/ custom}
11
10
if ! command -v phpstan > /dev/null; then
12
11
echo " phpstan is not available. You may need to 'ddev poser'"
13
12
exit 1
Original file line number Diff line number Diff line change 7
7
# # Example: "ddev phpunit" or "ddev phpunit --stop-on-failure"
8
8
# # ExecRaw: true
9
9
10
- DRUPAL_PROJECTS_PATH=${DRUPAL_PROJECTS_PATH:- modules/ custom}
11
10
if ! command -v phpunit > /dev/null; then
12
11
echo " phpunit is not available. You may need to 'ddev composer install'"
13
12
exit 1
Original file line number Diff line number Diff line change 7
7
# # Example: "ddev stylelint"
8
8
# # ExecRaw: true
9
9
10
- DRUPAL_PROJECTS_PATH=${DRUPAL_PROJECTS_PATH:- modules/ custom}
11
10
if $DDEV_DOCROOT /core/node_modules/.bin/stylelint --version > /dev/null ; then
12
11
# Change directory to the project root folder
13
12
cd " $DDEV_DOCROOT /$DRUPAL_PROJECTS_PATH /${DDEV_SITENAME// -/ _} " || exit
Original file line number Diff line number Diff line change 8
8
# # ExecRaw: true
9
9
10
10
export _WEB_ROOT=$DDEV_DOCROOT
11
- export DRUPAL_PROJECTS_PATH=${DRUPAL_PROJECTS_PATH:- modules/ custom}
12
11
# todo use more dynamic ref.
13
12
cd " $DDEV_COMPOSER_ROOT " || exit
14
13
curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/default-ref/scripts/symlink_project.php
Original file line number Diff line number Diff line change 1
1
# ddev-generated
2
2
# # Command provided by https://github.com/ddev/ddev-drupal-contrib
3
+ # # To customize this configuration, see:
4
+ # # https://ddev.readthedocs.io/en/stable/users/extend/customization-extendibility/
3
5
web_environment :
4
6
# To change the Drupal core version, see the README:
5
7
# https://github.com/ddev/ddev-drupal-contrib/blob/main/README.md#changing-the-drupal-core-version
@@ -8,6 +10,8 @@ web_environment:
8
10
- SIMPLETEST_BASE_URL=http://web
9
11
- BROWSERTEST_OUTPUT_DIRECTORY=/tmp
10
12
- BROWSERTEST_OUTPUT_BASE_URL=${DDEV_PRIMARY_URL}
13
+ # To change the symlink location, see: https://github.com/ddev/ddev-drupal-contrib/blob/main/README.md#changing-the-symlink-location
14
+ - DRUPAL_PROJECTS_PATH=modules/custom
11
15
hooks :
12
16
post-start :
13
17
- exec-host : |
You can’t perform that action at this time.
0 commit comments