-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from hypothesis/add-makefile
Add a basic Makefile
- Loading branch information
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters