-
Notifications
You must be signed in to change notification settings - Fork 5
/
install.yaml
50 lines (46 loc) · 1.57 KB
/
install.yaml
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
# Details about the install.yaml file are at
# https://ddev.readthedocs.io/en/latest/users/extend/additional-services/#sections-and-features-of-ddev-get-add-on-installyaml.
# See also https://github.com/ddev/ddev-addon-template/blob/main/install.yaml.
name: drupal-xb-dev
project_files:
- commands/host/xb-cypress
- commands/host/xb-fix
- commands/host/xb-setup
- commands/host/xb-static
- commands/web/xb-autosave
- commands/web/xb-core-set-version
- commands/web/xb-eslint
- commands/web/xb-phpcs
- commands/web/xb-phpstan
- commands/web/xb-phpunit
- commands/web/xb-site-install
- commands/web/xb-stylelint
- commands/web/xb-ui-build
- commands/web/xb-ui-dev
- config.drupal-xb-dev.yaml
post_install_actions:
- |
echo "Deleting commands removed in v0.0.16 (unless they've been modified)..."
FILES=(
"commands/host/.xb-command-include"
"commands/host/xb-cypress-component"
"commands/host/xb-cypress-open"
"commands/host/xb-cypress-run"
"commands/web/xb-drush-si"
"commands/web/xb-phpcbf"
"commands/web/xb-stylelint-fix"
)
for FILE in "${FILES[@]}"; do
if [[ ! -f "$FILE" ]]; then
continue
fi
# Skip the file if it has been modified.
if ! grep -q '## #ddev-generated' "$FILE"; then
echo "- Skipping $FILE - It has been modified"
continue
fi
# Otherwise delete it.
echo "- Deleting $FILE"
rm -f "$FILE"
done
- echo "‼️ If you're setting up this add-on for the first time on this project, finish installation by running 'ddev xb-setup'"