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 /tests/test_results.xml
# Tools # Tools
/tools/ /tools/vendor/
.php-cs-fixer.cache .php-cs-fixer.cache
## Github Composer .gitignore ## Github Composer .gitignore

View File

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