Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#25 | replace existing frontend command exist during installation #40

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ All notable changes to this project will be documented in this file.
- added alias annotations for 'ddev f' and 'ddev fe' commands in `commands/web/frontend` (_requires DDEV >= 1.23.4_)
- updated `README.md` to mention the aliases 'ddev f' and 'ddev fe' for the frontend commands
- updated `commands/web/woodoo_components/help` to list the aliases 'ddev f' and 'ddev fe' for the frontend commands
- remove existing `frontend` command to install woodoo correctly
- add replace notification in `README.md` if frontend command exist in `.ddev/commands/web/frontend`
- add post installation action with relevant next steps notifications

---

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Special thanks to e3n GmbH & Co. KG for your Support!

##### Latest stable version (recommended)

Be sure, if there is an existing `.ddev/commands/web/frontend` command, it will be replaced with this woodoo frontend command.

```shell
ddev get dermatz/ddev-woodoo-buildtools-magento
```
Expand Down
16 changes: 11 additions & 5 deletions install.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
name: ddev-woodoo-buildtools-magento

pre_install_actions:
# https://github.com/Morgy93/ddev-gum
- if ! ddev get --installed | grep -q "Morgy93/ddev-gum"; then ddev get Morgy93/ddev-gum; fi
# https://github.com/Morgy93/ddev-gum
- if ! ddev get --installed | grep -q "Morgy93/ddev-gum"; then ddev get Morgy93/ddev-gum; fi
- if [ -f .ddev/commands/web/frontend ]; then rm .ddev/commands/web/frontend; echo "- Existing frontend command replaced."; fi

project_files:
- commands/web/woodoo_components/
- commands/web/frontend
- commands/host/frontend-update
- commands/web/woodoo_components/
- commands/web/frontend
- commands/host/frontend-update

post_install_actions:
- echo -n "Woodoo Buildtools installed. Run 'ddev restart' to apply changes."
- echo -n "After restart you can use 'ddev frontend' to run frontend commands."
- echo "For more information visit https://github.com/dermatz/ddev-woodoo-buildtools-magento"
Loading