chore(legacy): commit tools composer.json

Allow to keep track of the tools version and not have unexpected version bumps.
This commit is contained in:
jo 2022-07-11 17:25:50 +02:00 committed by Jonas L
parent f39c079296
commit 25fbf5cf32
4 changed files with 2128 additions and 9 deletions

2
legacy/.gitignore vendored
View File

@ -9,7 +9,7 @@
/tests/test_results.xml
# Tools
/tools/
/tools/vendor/
.php-cs-fixer.cache
## Github Composer .gitignore

View File

@ -2,10 +2,10 @@ SHELL = bash
all: vendor locale-build
PHP-CS-FIXER = tools/vendor/bin/php-cs-fixer
$(PHP-CS-FIXER):
mkdir -p tools
composer require --working-dir=tools friendsofphp/php-cs-fixer
TOOLS = tools/vendor
tools: $(TOOLS)
$(TOOLS):
composer --working-dir=tools install
locale-update:
$(MAKE) -C locale update
@ -20,12 +20,12 @@ test: vendor
cd tests && ../vendor/bin/phpunit
.PHONY: format
format: $(PHP-CS-FIXER)
$(PHP-CS-FIXER) fix
format: tools
$(TOOLS)/bin/php-cs-fixer fix
.PHONY: lint
lint: $(PHP-CS-FIXER)
$(PHP-CS-FIXER) fix --dry-run --diff
lint: tools
$(TOOLS)/bin/php-cs-fixer fix --dry-run --diff
.PHONY: build
build:

View File

@ -0,0 +1,5 @@
{
"require": {
"friendsofphp/php-cs-fixer": "~3.8.0"
}
}

2114
legacy/tools/composer.lock generated Normal file

File diff suppressed because it is too large Load Diff