Skip to content

Commit

Permalink
Add a basic Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Jan 25, 2024
1 parent 266d456 commit ef607a2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ef607a2

Please sign in to comment.