Created
April 15, 2025 11:55
-
-
Save rela589n/b6d101db1aa3abc6bf0f167c3a89cf97 to your computer and use it in GitHub Desktop.
composer scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "scripts": { | |
| "auto-scripts": { | |
| "cache:clear": "symfony-cmd", | |
| "assets:install %PUBLIC_DIR%": "symfony-cmd" | |
| }, | |
| "post-install-cmd": [ | |
| "@auto-scripts" | |
| ], | |
| "post-update-cmd": [ | |
| "@auto-scripts" | |
| ], | |
| "ci:pack": [ | |
| "@ci:composer-validate", | |
| "@ci:composer-audit", | |
| "@ci:architecture", | |
| "@ci:ecs", | |
| "@ci:cache-clear --env=test", | |
| "@ci:static-analysis", | |
| "@ci:tests", | |
| "@ci:lint-container-all", | |
| "@ci:lint-schedule", | |
| "@ci:lint-twig", | |
| "@ci:lint-yaml" | |
| ], | |
| "ci:composer-validate": "composer validate --check-lock", | |
| "ci:composer-audit": "composer audit", | |
| "ci:architecture": "deptrac --config-file=deptrac-components.yaml", | |
| "ci:ecs": "vendor/bin/ecs check", | |
| "ci:ecs-fix": "vendor/bin/ecs --fix", | |
| "ci:cache-clear": "bin/console cache:clear", | |
| "ci:static-analysis": [ | |
| "@ci:rector", | |
| "@ci:phpstan", | |
| "@ci:psalm" | |
| ], | |
| "ci:gitlab-static-analysis": [ | |
| "@ci:architecture", | |
| "@ci:cache-warmup --env=test", | |
| "@ci:rector --no-progress-bar", | |
| "@ci:phpstan --no-progress", | |
| "@ci:psalm --no-progress --no-cache --no-file-cache" | |
| ], | |
| "ci:rector": "XDEBUG_MODE=off vendor/bin/rector process --dry-run", | |
| "ci:phpstan": "XDEBUG_MODE=off vendor/bin/phpstan analyse", | |
| "ci:psalm": "XDEBUG_MODE=off vendor-bin/linters/bin/psalm --no-diff", | |
| "ci:rector-fix": "XDEBUG_MODE=off vendor/bin/rector process", | |
| "ci:schema-validate": "bin/console doctrine:schema:validate", | |
| "ci:tests": [ | |
| "@ci:unit-tests", | |
| "@ci:integration-tests", | |
| "@ci:functional-tests" | |
| ], | |
| "ci:unit-tests": "bin/phpunit --testsuite=Unit", | |
| "ci:integration-tests": "bin/phpunit --testsuite=Integration", | |
| "ci:functional-tests": "bin/phpunit --testsuite=Functional", | |
| "ci:cache-warmup": "bin/console cache:warmup", | |
| "ci:lint-twig": "bin/console lint:twig src", | |
| "ci:lint-yaml": "bin/console lint:yaml --parse-tags config docs src", | |
| "ci:lint-container-all": [ | |
| "@ci:lint-container --env=test", | |
| "@ci:lint-container --env=local_dev", | |
| "@ci:lint-container --env=dev", | |
| "@ci:lint-container --env=local_stage", | |
| "@ci:lint-container --env=stage", | |
| "@ci:lint-container --env=prod" | |
| ], | |
| "ci:lint-schedule": "bin/console debug:scheduler", | |
| "ci:about": "bin/console about", | |
| "ci:lint-container": "bin/console lint:container", | |
| "app:recreate-test-database": [ | |
| "@app:recreate-database-sync --env=test", | |
| "@app:fixtures --env=test" | |
| ], | |
| "app:recreate-dev-database": [ | |
| "@app:recreate-database --env=dev", | |
| "@app:await-import", | |
| "@app:fixtures --env=dev" | |
| ], | |
| "app:recreate-database-sync": "APP_CONSUMERS_SYNC_MODE=true composer app:recreate-database -- @additional_args", | |
| "app:recreate-database": [ | |
| "@app:clear-doctrine-cache", | |
| "@app:clear-redis", | |
| "bin/console doctrine:database:create --if-not-exists", | |
| "bin/console doctrine:migrations:migrate --no-interaction first", | |
| "@app:migrate-database", | |
| "@ci:schema-validate", | |
| "@app:employee-data-import", | |
| "@app:create-oauth-clients", | |
| "echo DONE @no_additional_args" | |
| ], | |
| "app:employee-data-import": [ | |
| "bin/console app:employee-data:position:import-full", | |
| "bin/console app:employee-data:unit:import-full", | |
| "bin/console app:employee-data:employee:import-full" | |
| ], | |
| "app:await-import": "[ \"$APP_CONSUMERS_SYNC_MODE\" != \"true\" ] && sleep 7 || true @no_additional_args", | |
| "app:fixtures": "bin/console doctrine:fixtures:load --no-interaction --append", | |
| "app:drop-test-database": "@app:drop-database --env=test", | |
| "app:drop-database": "bin/console dbal:run-sql \"DROP SCHEMA public CASCADE; CREATE SCHEMA public;\"", | |
| "app:migrate-database": "bin/console doctrine:migrations:migrate --no-interaction --allow-no-migration", | |
| "app:clear-doctrine-cache": [ | |
| "bin/console cache:pool:clear doctrine.metadata_cache_pool", | |
| "bin/console cache:pool:clear doctrine.query_cache_pool", | |
| "bin/console cache:pool:clear doctrine.result_cache_pool", | |
| "echo DONE" | |
| ], | |
| "app:clear-redis": "bin/console cache:pool:clear --all" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment