2022-03-03 17:26:09 -05:00
|
|
|
# Lists the available actions
|
|
|
|
default:
|
|
|
|
@just --list
|
|
|
|
|
2023-05-19 16:34:07 -04:00
|
|
|
# -------------------------------------------------------------------
|
|
|
|
# Front-end stuff
|
|
|
|
# -------------------------------------------------------------------
|
2022-03-03 17:26:09 -05:00
|
|
|
|
2023-05-19 16:34:07 -04:00
|
|
|
# Builds/optimizes JS and CSS
|
|
|
|
build:
|
|
|
|
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
|
|
|
|
# -------------------------------------------------------------------
|
2022-03-03 17:26:09 -05:00
|
|
|
|
|
|
|
# Check code formatting
|
|
|
|
check-fmt:
|
|
|
|
tools/vendor/bin/php-cs-fixer fix --dry-run --verbose
|
|
|
|
|
|
|
|
# Fix code formatting
|
|
|
|
fmt:
|
|
|
|
tools/vendor/bin/php-cs-fixer fix --verbose
|
|
|
|
|
2023-05-19 16:34:07 -04:00
|
|
|
# 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
|
|
|
|
# -------------------------------------------------------------------
|
|
|
|
|
2022-03-03 17:26:09 -05:00
|
|
|
# Run tests
|
|
|
|
test:
|
|
|
|
composer run-script test
|
|
|
|
|
|
|
|
# Run tests, update snapshots
|
|
|
|
test-update:
|
|
|
|
composer run-script test-update
|
|
|
|
|
|
|
|
# Run unit tests and generate test-coverage report
|
|
|
|
coverage:
|
2023-05-19 16:34:07 -04:00
|
|
|
composer run-script coverage
|
|
|
|
|
|
|
|
# -------------------------------------------------------------------
|
|
|
|
# Misc
|
|
|
|
# -------------------------------------------------------------------
|
|
|
|
|
|
|
|
# Update the per-file header comments
|
|
|
|
update-headers:
|
|
|
|
php tools/update_header_comments.php
|