-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Makefile to the project root that does
release
, dev
, & …
…`docs`
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
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,21 @@ | ||
MAJOR_VERSION?=4 | ||
PLUGINDEV_PROJECT_DIR?=/Users/andrew/webdev/sites/plugindev/cms_v${MAJOR_VERSION}/ | ||
VENDOR?=nystudio107 | ||
PROJECT_PATH?=${VENDOR}/$(shell basename $(CURDIR)) | ||
|
||
.PHONY: dev release | ||
|
||
# Start up the buildchain dev server | ||
dev: | ||
# Start up the docs dev server | ||
docs: | ||
${MAKE} -C docs/ dev | ||
# Run code quality tools, tests, and build the buildchain & docs in preparation for a release | ||
release: --code-quality --code-tests --buildchain-clean-build --docs-clean-build | ||
# The internal targets used by the dev & release targets | ||
--buildchain-clean-build: | ||
--code-quality: | ||
${MAKE} -C ${PLUGINDEV_PROJECT_DIR} -- ecs check vendor/${PROJECT_PATH}/src --fix | ||
${MAKE} -C ${PLUGINDEV_PROJECT_DIR} -- phpstan analyze -c vendor/${PROJECT_PATH}/phpstan.neon | ||
--code-tests: | ||
--docs-clean-build: |