Skip to content

Commit

Permalink
feat: added new composer scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
benborla committed Nov 17, 2023
1 parent c155c4e commit 4cf66cc
Showing 1 changed file with 90 additions and 81 deletions.
171 changes: 90 additions & 81 deletions api/composer.json
Original file line number Diff line number Diff line change
@@ -1,86 +1,95 @@
{
"name": "benborla/fruit-vice",
"description": "Application made for Fruity Vice",
"type": "project",
"license": "proprietary",
"minimum-stability": "stable",
"prefer-stable": true,
"require": {
"php": ">=8.1",
"ext-ctype": "*",
"ext-iconv": "*",
"doctrine/doctrine-bundle": "^2.11",
"doctrine/doctrine-migrations-bundle": "^3.3",
"doctrine/orm": "^2.17",
"symfony/cache": "6.3.*",
"symfony/console": "6.3.*",
"symfony/dotenv": "6.3.*",
"symfony/flex": "^2",
"symfony/framework-bundle": "6.3.*",
"symfony/http-client": "6.3.*",
"symfony/runtime": "6.3.*",
"symfony/yaml": "6.3.*"
"name": "benborla/fruit-vice",
"description": "Application made for Fruity Vice",
"type": "project",
"license": "proprietary",
"minimum-stability": "stable",
"prefer-stable": true,
"require": {
"php": ">=8.1",
"ext-ctype": "*",
"ext-iconv": "*",
"doctrine/doctrine-bundle": "^2.11",
"doctrine/doctrine-migrations-bundle": "^3.3",
"doctrine/orm": "^2.17",
"symfony/cache": "6.3.*",
"symfony/console": "6.3.*",
"symfony/dotenv": "6.3.*",
"symfony/flex": "^2",
"symfony/framework-bundle": "6.3.*",
"symfony/http-client": "6.3.*",
"symfony/runtime": "6.3.*",
"symfony/yaml": "6.3.*"
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.5",
"phpstan/phpstan-symfony": "^1.3",
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.7",
"symfony/browser-kit": "6.3.*",
"symfony/css-selector": "6.3.*",
"symfony/maker-bundle": "^1.51",
"symfony/phpunit-bridge": "^6.3"
},
"config": {
"allow-plugins": {
"php-http/discovery": true,
"symfony/flex": true,
"symfony/runtime": true
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.5",
"phpstan/phpstan-symfony": "^1.3",
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.7",
"symfony/browser-kit": "6.3.*",
"symfony/css-selector": "6.3.*",
"symfony/maker-bundle": "^1.51",
"symfony/phpunit-bridge": "^6.3"
},
"config": {
"allow-plugins": {
"php-http/discovery": true,
"symfony/flex": true,
"symfony/runtime": true
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"replace": {
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php72": "*",
"symfony/polyfill-php73": "*",
"symfony/polyfill-php74": "*",
"symfony/polyfill-php80": "*",
"symfony/polyfill-php81": "*"
},
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
],
"test_setup_db": "php bin/console doctrine:fixtures:load --env=test",
"test": "php bin/phpunit",
"lint": "./vendor/bin/phpcs --standard=PSR12 -p --colors",
"fix": "./vendor/bin/phpcbf"
},
"conflict": {
"symfony/symfony": "*"
"sort-packages": true
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"replace": {
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php72": "*",
"symfony/polyfill-php73": "*",
"symfony/polyfill-php74": "*",
"symfony/polyfill-php80": "*",
"symfony/polyfill-php81": "*"
},
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "6.3.*"
}
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
],
"setup": [
"php bin/console doctrine:database:create",
"php bin/console make:entity"
],
"test_setup_db": "php bin/console doctrine:fixtures:load --env=test",
"test": "php bin/phpunit",
"lint": "./vendor/bin/phpcs --standard=PSR12 -p --colors",
"fix": "./vendor/bin/phpcbf",
"code-cleanup": [
"composer run lint ./src ./tests",
"composer run fix",
"composer run lint ./src ./tests"
]
},
"conflict": {
"symfony/symfony": "*"
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "6.3.*"
}
}
}

0 comments on commit 4cf66cc

Please sign in to comment.