From ef607a25b1946b53c17381910d1e89b972ce3c4f Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Wed, 24 Jan 2024 10:33:51 +0100 Subject: [PATCH] Add a basic Makefile --- Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a354f99 --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +.PHONY: default +default: help + +.PHONY: help +help: + @echo "make help Show this help message" + @echo "make dev Run the plugin in the development WordPress" + @echo "make lint Run the code linter(s) and print any warnings" + @echo "make format Automatically format code" + @echo "make sure Make sure that the formatter, linter, tests, etc all pass" + +.PHONY: dev +dev: vendor + docker compose up + +.PHONY: lint +lint: vendor + composer lint + +.PHONY: format +format: vendor + composer format + +.PHONY: sure +sure: lint + +vendor: composer.json composer.lock + composer install