PHP Classes
elePHPant
Icontem

File: Makefile

Recommend this page to a friend!
  Classes of Jose Luis Quintana  >  GImage  >  Makefile  >  Download  
File: Makefile
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: GImage
Create graphic images with a fluent interface
Author: By
Last change: composer install
fix docs
fix docs
fix docs task
fix docs deploy
docs_deploy task
docs_deploy task
api docs updated
docs_api task
classes documentation
chore: docs page index
Date: 6 months ago
Size: 866 bytes
 

Contents

Class file image Download
TMP_DOCS=/tmp/_gimage_docs

help:
	@echo "Please use \`make <target>' where <target> is one of:"
	@echo "  test           to perform unit tests."
	@echo "  format         to format the codebase."

test:
	vendor/bin/phpunit

format:
	phpcbf -w ./src ./tests --standard=PSR2
	phpcs ./src ./tests --standard=PSR2

docs:
	mkdocs serve -e docs -a 0.0.0.0:8000

docs_build:
	mkdocs build -e docs -d $(TMP_DOCS)

docs_api:
	mkdir -p site/api/v3.0
	vendor/bin/apigen generate -s src -d $(TMP_DOCS)/api/v3.0

docs_deploy:
	-composer install
	-rm -rf $(TMP_DOCS)
	-make docs_build
	-make docs_api
	-git checkout gh-pages
	-git rm --cached -r .
	-git clean -df
	-cp -a $(TMP_DOCS)/. ./
	-git add -A && git commit . -m "update docs"
	-git push -u origin gh-pages
	-rm -rf $(TMP_DOCS)
	@echo
	@echo "Docs built and published."

.PHONY: test docs format docs docs_api docs_deploy