-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.yaml
More file actions
54 lines (49 loc) · 1.71 KB
/
install.yaml
File metadata and controls
54 lines (49 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Details about the install.yaml file are at https://ddev.readthedocs.io/en/stable/users/extend/additional-services/#sections-and-features-of-ddev-get-add-on-installyaml
name: drupal-code-quality
# Files copied into the project's .ddev directory.
project_files:
- config.drupal-code-quality.yaml
- commands/helpers/path-map.sh
- commands/helpers/node-toolchain.sh
- commands/web/checks
- commands/web/composer-validate
- commands/web/cspell
- commands/web/cspell-suggest
- commands/web/eslint
- commands/web/eslint-fix
- commands/web/php-parallel-lint
- commands/web/phpcbf
- commands/web/phpcs
- commands/web/phpstan
- commands/web/prettier
- commands/web/prettier-fix
- commands/web/stylelint
- commands/web/stylelint-fix
- drupal-code-quality
- dcq-install.sh
# DDEV version constraint for the add-on.
ddev_version_constraint: '>= v1.24.10'
# post_install_actions are executed in the context of the target project's .ddev directory.
post_install_actions:
- |
#ddev-description: Install Drupal.org GitLab CI template configs and host shims
bash dcq-install.sh
removal_actions:
- |
#ddev-description Remove Drupal code quality shims
project_root="$(cd .. && pwd)"
target="${project_root%/}/.ddev/drupal-code-quality/tooling/bin"
if [ -d "$target" ]; then
for file in "$target"/*; do
[ -e "$file" ] || continue
if head -n 1 "$file" | grep -q '^#ddev-generated'; then
rm -f "$file"
echo "Removed shim: $file"
else
echo "Skipping $file (not generated)"
fi
done
find "$target" -type d -empty -delete
fi
rm -f .dcq-docroot
rm -rf drupal-code-quality