-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
331 additions
and
74 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 |
---|---|---|
@@ -1,5 +1,12 @@ | ||
composer.json export-ignore | ||
.travis.yml export-ignore | ||
.gitignore export-ignore | ||
.editorconfig export-ignore | ||
.gitattributes export-ignore | ||
|
||
.gitignore export-ignore | ||
composer.json export-ignore | ||
composer.lock export-ignore | ||
Dockerfile export-ignore | ||
docker-compose.yml export-ignore | ||
Makefile export-ignore | ||
/assets export-ignore | ||
/docs export-ignore | ||
/.github export-ignore | ||
.phpcs.xml export-ignore |
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
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
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
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
.project | ||
.settings/* | ||
.vscode/* | ||
.DS_Store | ||
.idea | ||
*.lock | ||
logs/ | ||
vendor/ | ||
logs/ | ||
build/ |
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,47 @@ | ||
<?xml version='1.0'?> | ||
<ruleset name='BMLT'> | ||
<description>The BMLT Coding Standards</description> | ||
<!-- | ||
If no files or directories are specified on the command line | ||
your custom standard can specify what files should be checked | ||
instead. | ||
Note that specifying any file or directory path | ||
on the command line will ignore all file tags. | ||
--> | ||
<file>.</file> | ||
|
||
<!-- | ||
You can hard-code command line values into your custom standard. | ||
Note that this does not work for the command line values: | ||
-v[v][v], -l, -d, -sniffs and -standard | ||
The following tags are equivalent to the command line arguments: | ||
-p | ||
--> | ||
<arg name='encoding' value='utf-8'/> | ||
<arg name='extensions' value='php'/> | ||
<arg name='warning-severity' value='6'/> | ||
<arg name="report" value="full"/> | ||
<arg name="parallel" value="4" /> | ||
<arg value='s'/> | ||
|
||
<!-- | ||
You can hard-code custom php.ini settings into your custom standard. | ||
The following tag sets the memory limit to 64M. | ||
--> | ||
<ini name="memory_limit" value="128M"/> | ||
|
||
<!-- | ||
You can hard-code ignore patterns directly into your | ||
custom standard so you don't have to specify the | ||
patterns on the command line. | ||
--> | ||
<exclude-pattern>vendor/*</exclude-pattern> | ||
|
||
<!-- | ||
You can add specific global ignores to different | ||
rules here. | ||
--> | ||
<rule ref='PSR2'></rule> | ||
<rule ref="PSR1"></rule> | ||
</ruleset> |
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 |
---|---|---|
@@ -1,27 +1,22 @@ | ||
FROM wordpress:5.3.2-php7.2-apache | ||
FROM wordpress:6.0.2-php8.0-apache | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends ssl-cert && \ | ||
rm -r /var/lib/apt/lists/* && \ | ||
a2enmod ssl rewrite expires && \ | ||
a2ensite default-ssl | ||
|
||
ENV PHP_INI_PATH "/usr/local/etc/php/php.ini" | ||
ENV PHP_INI_PATH /usr/local/etc/php/php.ini | ||
ENV PHP_XDEBUG_ENABLED: 1 | ||
|
||
RUN echo "zend_extension=$(find /usr/lib/php/ -name xdebug.so)" >> ${PHP_INI_PATH} \ | ||
&& echo "xdebug.mode=coverage,debug" >> ${PHP_INI_PATH} \ | ||
&& echo "xdebug.client_port=9003" >> ${PHP_INI_PATH} \ | ||
&& echo "xdebug.client_host=host.docker.internal" >> ${PHP_INI_PATH} \ | ||
&& echo "xdebug.start_with_request=yes" >> ${PHP_INI_PATH} \ | ||
&& echo "xdebug.log=/tmp/xdebug.log" >> ${PHP_INI_PATH} \ | ||
&& echo "xdebug.idekey=IDE_DEBUG" >> ${PHP_INI_PATH} | ||
|
||
RUN pecl install xdebug-2.6.1 \ | ||
&& docker-php-ext-enable xdebug \ | ||
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" >> ${PHP_INI_PATH} \ | ||
&& echo "xdebug.remote_port=9000" >> ${PHP_INI_PATH} \ | ||
&& echo "xdebug.remote_enable=1" >> ${PHP_INI_PATH} \ | ||
&& echo "xdebug.remote_connect_back=0" >> ${PHP_INI_PATH} \ | ||
&& echo "xdebug.remote_host=docker.for.mac.localhost" >> ${PHP_INI_PATH} \ | ||
&& echo "xdebug.idekey=IDEA_DEBUG" >> ${PHP_INI_PATH} \ | ||
&& echo "xdebug.remote_autostart=1" >> ${PHP_INI_PATH} \ | ||
&& echo "xdebug.remote_log=/tmp/xdebug.log" >> ${PHP_INI_PATH} \ | ||
&& echo "xdebug.profiler_enable_trigger=1" >> ${PHP_INI_PATH} \ | ||
&& echo "log_errors = On" >> ${PHP_INI_PATH} \ | ||
&& echo "error_reporting = E_ALL" >> ${PHP_INI_PATH} \ | ||
&& echo "error_log=/var/www/php_error.log" >> ${PHP_INI_PATH} | ||
|
||
EXPOSE 80 | ||
EXPOSE 443 |
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 |
---|---|---|
@@ -1,22 +1,30 @@ | ||
COMMIT := $(shell git rev-parse --short=8 HEAD) | ||
ZIP_FILENAME := $(or $(ZIP_FILENAME),"bmlt-build-file.zip") | ||
BUILD_DIR := $(or $(BUILD_DIR),"build") | ||
VENDOR_AUTOLOAD := vendor/autoload.php | ||
|
||
help: ## Print the help documentation | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
.PHONY: build | ||
build: ## Build | ||
git archive --format=zip --output=${ZIP_FILENAME} $(COMMIT) | ||
mkdir ${BUILD_DIR} && mv ${ZIP_FILENAME} ${BUILD_DIR}/ | ||
|
||
.PHONY: clean | ||
clean: ## clean | ||
rm -rf build dist | ||
|
||
$(VENDOR_AUTOLOAD): | ||
composer install | ||
composer install --prefer-dist --no-progress --no-suggest | ||
|
||
.PHONY: composer | ||
composer: $(VENDOR_AUTOLOAD) ## Runs composer install | ||
|
||
.PHONY: dev | ||
run: ## Docker Run | ||
docker-compose up --build | ||
|
||
.PHONY: lint | ||
lint: composer ## Lint | ||
vendor/squizlabs/php_codesniffer/bin/phpcs --warning-severity=6 --standard=PSR2 --ignore=vendor --extensions=php --report=full . | ||
lint: composer ## PHP Lint | ||
vendor/squizlabs/php_codesniffer/bin/phpcs | ||
|
||
.PHONY: lint-fix | ||
lint-fix: composer ## Lint Fix | ||
vendor/squizlabs/php_codesniffer/bin/phpcbf --warning-severity=6 --standard=PSR2 --ignore=vendor --extensions=php --report=full . | ||
lint-fix: composer ## PHP Lint Fix | ||
vendor/squizlabs/php_codesniffer/bin/phpcbf |
Oops, something went wrong.