generated from ddev/ddev-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.yaml
32 lines (32 loc) · 927 Bytes
/
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
name: readme
project_files:
- web-build/Dockerfile.readme
- readme/.gitignore
- readme/watch.cjs
- readme/.prettierrc
- readme/build.sh
- readme/whichnode.sh
- readme/.ahoy.readme.yml
- web-entrypoint.d/readme-nodedeps.sh
- config.readme.yaml
post_install_actions:
- |
#ddev-description: [update] Rename watch.js to watch.cjs
file="readme/watch.js"
if [ -f "$file" ]; then
if grep '#ddev-generated' "$file" > /dev/null 2>&1; then
mv "$file" readme/watch.cjs
else
echo "Existing "$file" does not have #ddev-generated, so can't be renamed"
fi
fi
- |
#ddev-description: [update] Remove Dockerfile
file="web-build/Dockerfile.readme"
if [ -f "$file" ]; then
if grep '#ddev-generated' "$file" > /dev/null 2>&1; then
rm $file
else
echo "Existing "$file" does not have #ddev-generated, so can't be removed"
fi
fi