Version 5.1 - All the GraphQL #32
52
justfile
52
justfile
@ -2,13 +2,25 @@
|
|||||||
default:
|
default:
|
||||||
@just --list
|
@just --list
|
||||||
|
|
||||||
# Runs rector, showing what changes will be make
|
# -------------------------------------------------------------------
|
||||||
rector-dry-run:
|
# Front-end stuff
|
||||||
tools/vendor/bin/rector process --config=tools/rector.php --dry-run src tests
|
# -------------------------------------------------------------------
|
||||||
|
|
||||||
# Runs rector, and updates the source files
|
# Builds/optimizes JS and CSS
|
||||||
rector:
|
build:
|
||||||
tools/vendor/bin/rector process --config=tools/rector.php src tests
|
cd frontEndSrc && npm run build && cd ..
|
||||||
|
|
||||||
|
# Builds/optimizes CSS
|
||||||
|
css:
|
||||||
|
composer run-script build:css
|
||||||
|
|
||||||
|
# Builds/optimizes JS
|
||||||
|
js:
|
||||||
|
composer run-script build:js
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------
|
||||||
|
# Code Quality and Formatting
|
||||||
|
# -------------------------------------------------------------------
|
||||||
|
|
||||||
# Check code formatting
|
# Check code formatting
|
||||||
check-fmt:
|
check-fmt:
|
||||||
@ -18,6 +30,22 @@ check-fmt:
|
|||||||
fmt:
|
fmt:
|
||||||
tools/vendor/bin/php-cs-fixer fix --verbose
|
tools/vendor/bin/php-cs-fixer fix --verbose
|
||||||
|
|
||||||
|
# Runs phpstan code check
|
||||||
|
phpstan:
|
||||||
|
composer run-script phpstan
|
||||||
|
|
||||||
|
# Runs rector, showing what changes will be make
|
||||||
|
rector-dry-run:
|
||||||
|
tools/vendor/bin/rector process --config=tools/rector.php --dry-run src tests
|
||||||
|
|
||||||
|
# Runs rector, and updates the source files
|
||||||
|
rector:
|
||||||
|
tools/vendor/bin/rector process --config=tools/rector.php src tests
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------
|
||||||
|
# Testing
|
||||||
|
# -------------------------------------------------------------------
|
||||||
|
|
||||||
# Run tests
|
# Run tests
|
||||||
test:
|
test:
|
||||||
composer run-script test
|
composer run-script test
|
||||||
@ -26,10 +54,14 @@ test:
|
|||||||
test-update:
|
test-update:
|
||||||
composer run-script test-update
|
composer run-script test-update
|
||||||
|
|
||||||
# Update the per-file header comments
|
|
||||||
update-headers:
|
|
||||||
php tools/update_header_comments.php
|
|
||||||
|
|
||||||
# Run unit tests and generate test-coverage report
|
# Run unit tests and generate test-coverage report
|
||||||
coverage:
|
coverage:
|
||||||
composer run-script coverage
|
composer run-script coverage
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------
|
||||||
|
# Misc
|
||||||
|
# -------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Update the per-file header comments
|
||||||
|
update-headers:
|
||||||
|
php tools/update_header_comments.php
|
@ -9,11 +9,12 @@ parameters:
|
|||||||
- ./console
|
- ./console
|
||||||
- index.php
|
- index.php
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
- "#Offset 'fields' does not exist on array#"
|
- '#Unable to resolve the template type T#'
|
||||||
- '#Function imagepalletetotruecolor not found#'
|
- '#imagepalletetotruecolor not found#'
|
||||||
- '#Call to an undefined method Aura\\\Html\\\HelperLocator::[a-zA-Z0-9_]+\(\)#'
|
- '#Call to an undefined method Aura\\\Html\\\HelperLocator::[a-zA-Z0-9_]+\(\)#'
|
||||||
- '#Call to an undefined method Query\\QueryBuilderInterface::[a-zA-Z0-9_]+\(\)#'
|
- '#Call to an undefined method Query\\QueryBuilderInterface::[a-zA-Z0-9_]+\(\)#'
|
||||||
excludes_analyse:
|
excludePaths:
|
||||||
|
- src/Ion/Type/Stringy.php
|
||||||
- tests/mocks.php
|
- tests/mocks.php
|
||||||
- vendor
|
- vendor
|
||||||
# These are objects that basically can return anything
|
# These are objects that basically can return anything
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"require": {
|
"require": {
|
||||||
"friendsofphp/php-cs-fixer": "^3.6",
|
"friendsofphp/php-cs-fixer": "^3.6",
|
||||||
"rector/rector": "^0.15.21"
|
"rector/rector": "^0.16.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user