Skip to content

Commit

Permalink
Starting off with simple deps
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Feb 26, 2024
1 parent a8a6d0c commit 48ba24a
Showing 1 changed file with 17 additions and 107 deletions.
124 changes: 17 additions & 107 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,126 +4,36 @@
"description": "A Sylius plugin for handling brands",
"license": "MIT",
"require": {
"sylius/sylius": "^1.3"
},
"conflict": {
"symfony/browser-kit": "4.1.8",
"symfony/dependency-injection": "4.1.8",
"symfony/doctrine-bridge": "4.3.0",
"symfony/dom-crawler": "4.1.8",
"symfony/framework-bundle": "4.3.0",
"symfony/routing": "4.1.8",
"symfony/symfony": "4.1.8"
"php": ">=8.1"
},
"require-dev": {
"behat/behat": "^3.4",
"behat/mink": "^1.7@dev",
"behat/mink-browserkit-driver": "^1.3",
"behat/mink-extension": "^2.2",
"behat/mink-selenium2-driver": "^1.3",
"ergebnis/composer-normalize": "^2.0",
"friends-of-behat/mink-debug-extension": "^1.2.3 || ^2.0",
"friends-of-behat/page-object-extension": "^0.3",
"friends-of-behat/service-container-extension": "^1.0",
"friends-of-behat/suite-settings-extension": "^1.0",
"friends-of-behat/symfony-extension": "^2.0",
"friends-of-behat/variadic-extension": "^1.1",
"lchrusciel/api-test-case": "^4.0 || ^5.0",
"matthiasnoback/symfony-config-test": "^4.0",
"phpspec/phpspec": "^7.0",
"phpstan/phpstan-doctrine": "^0.12 || ^1.0",
"phpstan/phpstan": "^0.12 || ^1.0",
"phpstan/phpstan-symfony": "^0.12 || ^1.0",
"phpstan/phpstan-webmozart-assert": "^0.12 || ^1.0",
"phpunit/phpunit": "^8.0",
"roave/security-advisories": "dev-master",
"sensiolabs/security-checker": "^5.0",
"sylius-labs/coding-standard": "^4.0",
"symfony/browser-kit": "^3.4 || ^4.1",
"symfony/debug-bundle": "^3.4 || ^4.1",
"symfony/dotenv": "^4.2",
"symfony/event-dispatcher": "^3.4 || ^4.1",
"symfony/intl": "^3.4 || ^4.1",
"symfony/web-profiler-bundle": "^3.4 || ^4.1",
"symfony/web-server-bundle": "^3.4 || ^4.1"
},
"extra": {
"branch-alias": {
"dev-master": "1.3-dev"
}
"sylius/sylius": "~1.11.15"
},
"autoload": {
"psr-4": {
"Loevgaard\\SyliusBrandPlugin\\": "src/",
"Tests\\Loevgaard\\SyliusBrandPlugin\\": "tests/"
"Loevgaard\\SyliusBrandPlugin\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\Loevgaard\\SyliusBrandPlugin\\": "tests/"
},
"classmap": [
"tests/Application/Kernel.php"
]
},
"prefer-stable": true,
"scripts": {
"all": [
"@checks",
"@tests"
],
"analyse": [
"@ensure-test-container-exists",
"./vendor/bin/phpstan analyse -c phpstan.neon -l max src"
],
"assets": [
"@ensure-assets-installed",
"@ensure-assets-compiled"
],
"behat": [
"SYMFONY_ENV=test composer ensure-database-ready",
"SYMFONY_ENV=test composer ensure-env-copied",
"./vendor/bin/behat --tags=\"~@javascript\" --no-interaction --format=progress"
],
"check-style": "./vendor/bin/ecs check src",
"checks": [
"@check-style",
"@analyse"
],
"ensure-assets-compiled": "[[ -d tests/Application/public/assets ]] || (cd tests/Application && yarn build && composer ensure-env-copied && bin/console assets:install public -e ${SYMFONY_ENV:-'dev'})",
"ensure-assets-installed": "[[ -d tests/Application/node_modules ]] || (cd tests/Application && yarn install)",
"ensure-database-created": "composer ensure-env-copied && (cd tests/Application && bin/console doctrine:database:create --if-not-exists -e ${SYMFONY_ENV:-'dev'})",
"ensure-database-ready": [
"@ensure-database-created",
"@ensure-schema-updated"
],
"ensure-env-copied": "([[ ${SYMFONY_ENV:-'dev'} == 'dev' ]] && composer ensure-env-dev-copied) || ([[ ${SYMFONY_ENV:-'dev'} == 'test' ]] && composer ensure-env-test-copied) || echo 'Unknown environment ${SYMFONY_ENV}'",
"ensure-env-dev-copied": "(cd tests/Application && ([[ -f .env.dev.local ]] || cp .env .env.dev.local))",
"ensure-env-test-copied": "(cd tests/Application && ([[ -f .env.test.local ]] || cp .env.test .env.test.local))",
"ensure-schema-updated": "composer ensure-env-copied && (cd tests/Application && bin/console doctrine:schema:update --force -e ${SYMFONY_ENV:-'dev'})",
"ensure-test-container-exists": "[[ -f tests/Application/var/cache/test/ApplicationTests_Loevgaard_SyliusBrandPlugin_Application_KernelTestDebugContainer.xml ]] || (cd tests/Application && php -d memory_limit=-1 bin/console cache:clear --env=test)",
"ensure-vendors-installed": "[[ -f vendor/autoload.php ]] || php -d memory_limit=-1 /usr/local/bin/composer install",
"fix-style": "./vendor/bin/ecs check src --fix",
"fixtures": [
"@ensure-database-ready",
"(cd tests/Application && bin/console sylius:fixtures:load --no-interaction -e ${SYMFONY_ENV:-'dev'})"
],
"phpspec": "./vendor/bin/phpspec run -vvv",
"phpunit": [
"SYMFONY_ENV=test composer ensure-database-ready",
"php -d memory_limit=-1 ./vendor/bin/phpunit"
],
"run": [
"@ensure-env-copied",
"(cd tests/Application && bin/console server:run -d public -e ${SYMFONY_ENV:-'dev'})"
],
"tests": [
"@phpspec",
"@phpunit",
"@behat"
],
"try": [
"@ensure-vendors-installed",
"@assets",
"@fixtures",
"@run"
]
"analyse": "psalm",
"check-style": "ecs check",
"fix-style": "ecs check --fix",
"phpunit": "phpunit"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": false,
"ergebnis/composer-normalize": true,
"infection/extension-installer": true
}
}
}

0 comments on commit 48ba24a

Please sign in to comment.