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:
parent
f39c079296
commit
25fbf5cf32
|
@ -9,7 +9,7 @@
|
|||
/tests/test_results.xml
|
||||
|
||||
# Tools
|
||||
/tools/
|
||||
/tools/vendor/
|
||||
.php-cs-fixer.cache
|
||||
|
||||
## Github Composer .gitignore
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"require": {
|
||||
"friendsofphp/php-cs-fixer": "~3.8.0"
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue