-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from odiseoteam/1.8
Update sylius 1.12 and symfony 6
- Loading branch information
Showing
72 changed files
with
420 additions
and
585 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
# Change these settings to your own preference | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# We recommend you to keep these unchanged | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.feature] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.js] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.json] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.md] | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = false | ||
|
||
[*.neon] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.php] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.sh] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.{yaml,yml}] | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = false | ||
|
||
[.babelrc] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[.gitmodules] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[.php_cs{,.dist}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[composer.json] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[package.json] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[phpspec.yml{,.dist}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[phpstan.neon] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[phpunit.xml{,.dist}] | ||
indent_style = space | ||
indent_size = 4 |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
phpunit: | ||
vendor/bin/phpunit | ||
|
||
phpspec: | ||
vendor/bin/phpspec run --ansi --no-interaction -f dot | ||
|
||
phpstan: | ||
vendor/bin/phpstan analyse | ||
|
||
psalm: | ||
vendor/bin/psalm | ||
|
||
behat-js: | ||
APP_ENV=test vendor/bin/behat --colors --strict --no-interaction -vvv -f progress | ||
|
||
install: | ||
composer install --no-interaction --no-scripts | ||
|
||
backend: | ||
tests/Application/bin/console sylius:install --no-interaction | ||
tests/Application/bin/console sylius:fixtures:load default --no-interaction | ||
|
||
frontend: | ||
(cd tests/Application && yarn install --pure-lockfile) | ||
(cd tests/Application && GULP_ENV=prod yarn build) | ||
|
||
behat: | ||
APP_ENV=test vendor/bin/behat --colors --strict --no-interaction -vvv -f progress | ||
|
||
init: install backend frontend | ||
|
||
ci: init phpstan psalm phpunit phpspec behat | ||
|
||
integration: init phpunit behat | ||
|
||
static: install phpspec phpstan psalm |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
services: | ||
app: | ||
image: sylius/standard:1.11-traditional-alpine | ||
environment: | ||
APP_ENV: "dev" | ||
DATABASE_URL: "mysql://root:mysql@mysql/sylius_%kernel.environment%?charset=utf8mb4" | ||
# DATABASE_URL: "pgsql://root:postgres@postgres/sylius_%kernel.environment%?charset=utf8" # When using postgres | ||
PHP_DATE_TIMEZONE: "Europe/Warsaw" | ||
volumes: | ||
- ./:/app:delegated | ||
- ./.docker/php/php.ini:/etc/php8/php.ini:delegated | ||
- ./.docker/nginx/nginx.conf:/etc/nginx/nginx.conf:delegated | ||
ports: | ||
- 80:80 | ||
depends_on: | ||
- mysql | ||
networks: | ||
- sylius | ||
|
||
mysql: | ||
image: mysql:8.0 | ||
platform: linux/amd64 | ||
environment: | ||
MYSQL_ROOT_PASSWORD: mysql | ||
ports: | ||
- ${MYSQL_PORT:-3306}:3306 | ||
networks: | ||
- sylius | ||
|
||
# postgres: | ||
# image: postgres:14-alpine | ||
# environment: | ||
# POSTGRES_USER: root | ||
# POSTGRES_PASSWORD: postgres | ||
# ports: | ||
# - ${POSTGRES_PORT:-5432}:5432 | ||
# networks: | ||
# - sylius | ||
|
||
networks: | ||
sylius: | ||
driver: bridge |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use PhpCsFixer\Fixer\ClassNotation\VisibilityRequiredFixer; | ||
use SlevomatCodingStandard\Sniffs\Commenting\InlineDocCommentDeclarationSniff; | ||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
use Symplify\EasyCodingStandard\ValueObject\Option; | ||
use Symplify\EasyCodingStandard\Config\ECSConfig; | ||
|
||
return static function (ECSConfig $ecsConfig): void { | ||
$ecsConfig->paths([ | ||
__DIR__ . '/src', | ||
__DIR__ . '/tests/Behat', | ||
__DIR__ . '/ecs.php', | ||
]); | ||
|
||
return static function (ContainerConfigurator $containerConfigurator): void { | ||
$containerConfigurator->import('vendor/sylius-labs/coding-standard/ecs.php'); | ||
$ecsConfig->import('vendor/sylius-labs/coding-standard/ecs.php'); | ||
|
||
$containerConfigurator->parameters()->set(Option::SKIP, [ | ||
$ecsConfig->skip([ | ||
VisibilityRequiredFixer::class => ['*Spec.php'], | ||
]); | ||
}; |
Oops, something went wrong.