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