-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.yaml
More file actions
22 lines (18 loc) · 878 Bytes
/
Copy pathinstall.yaml
File metadata and controls
22 lines (18 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: playwright-cli
project_files:
- config.playwright-cli.yaml
- web-build/Dockerfile.playwright-cli
- playwright-cli/cli.config.json
ddev_version_constraint: '>= v1.24.3'
# Clean up the disabled Dockerfile and install command from previous versions.
post_install_actions:
- |
#ddev-description:Clean up legacy ddev-playwright-cli files
rm -f "${DDEV_APPROOT}/.ddev/web-build/disabled.Dockerfile.playwright-cli"
rm -f "${DDEV_APPROOT}/.ddev/commands/host/install-playwright-cli"
GITIGNORE="${DDEV_APPROOT}/.ddev/web-build/.gitignore"
if [ -f "$GITIGNORE" ]; then
sed -i '/# This file is optionally copied to enable playwright-cli/d; /# disabled.Dockerfile.playwright-cli/d' "$GITIGNORE"
fi
removal_actions:
- if grep "#ddev-generated" web-build/Dockerfile.playwright-cli 2>/dev/null; then rm web-build/Dockerfile.playwright-cli; fi