Skip to content
Snippets Groups Projects
composer.json 3.09 KiB
Newer Older
Reiter, Christoph's avatar
wip
Reiter, Christoph committed
{
    "name": "dbp/relay-server-template",
Reiter, Christoph's avatar
Reiter, Christoph committed
    "type": "project",
    "license": "AGPL-3.0-or-later",
    "require": {
Reiter, Christoph's avatar
Reiter, Christoph committed
        "php": "^7.3 || ^8.0",
Reiter, Christoph's avatar
Reiter, Christoph committed
Reiter, Christoph's avatar
wip
Reiter, Christoph committed
    },
Reiter, Christoph's avatar
Reiter, Christoph committed
    "config": {
        "preferred-install": {
            "dbp/*": "source",
            "*": "dist"
        },
Reiter, Christoph's avatar
Reiter, Christoph committed
        "sort-packages": true,
        "platform": {
            "php": "7.3"
        }
    },
    "autoload": {
        "psr-4": {
Reiter, Christoph's avatar
Reiter, Christoph committed
        }
    },
    "autoload-dev": {
        "psr-4": {
            "App\\Tests\\": "tests/"
Reiter, Christoph's avatar
Reiter, Christoph committed
        }
    },
    "replace": {
        "paragonie/random_compat": "2.*",
        "symfony/polyfill-ctype": "*",
        "symfony/polyfill-iconv": "*",
        "symfony/polyfill-php71": "*",
        "symfony/polyfill-php70": "*",
        "symfony/polyfill-php56": "*"
    },
    "scripts": {
        "auto-scripts": {
            "cache:clear": "symfony-cmd",
            "assets:install %PUBLIC_DIR%": "symfony-cmd",
            "vendor/dbp/relay-core-bundle/bin/move-core-bundle.php": "php-script",
            "vendor/dbp/relay-core-bundle/bin/disable-database-url.php": "php-script"
Reiter, Christoph's avatar
Reiter, Christoph committed
        },
        "post-install-cmd": [
Reiter, Christoph's avatar
Reiter, Christoph committed
        ],
        "post-update-cmd": [
Reiter, Christoph's avatar
Reiter, Christoph committed
        ],
        "test": [
            "@php bin/phpunit"
        ],
        "coverage": [
            "@php bin/phpunit --coverage-html _coverage"
        ],
        "phpstan": [
            "@php bin/phpunit --atleast-version 0",
            "@php vendor/bin/phpstan analyze --ansi"
        ],
        "psalm": [
            "@php bin/phpunit --atleast-version 0",
            "@php vendor/bin/psalm"
        ],
        "lint": [
            "@composer run cs",
            "@composer run phpstan",
            "@composer run psalm"
        ],
        "cs-fix": [
            "@php vendor/bin/php-cs-fixer --ansi fix"
        ],
        "cs": [
Reiter, Christoph's avatar
Reiter, Christoph committed
            "@php vendor/bin/php-cs-fixer --ansi fix --dry-run --diff"
Reiter, Christoph's avatar
Reiter, Christoph committed
        ]
    },
    "conflict": {
        "symfony/symfony": "*"
    },
    "extra": {
        "symfony": {
            "allow-contrib": false,
            "require": "^5.2",
            "endpoint": [
                "flex://defaults",
                "https://api.github.com/repos/digital-blueprint/symfony-recipes/contents/index.json?ref=flex/main"
            ]
Reiter, Christoph's avatar
Reiter, Christoph committed
        }
Reiter, Christoph's avatar
wip
Reiter, Christoph committed
    },
Reiter, Christoph's avatar
Reiter, Christoph committed
    "require-dev": {
Reiter, Christoph's avatar
wip
Reiter, Christoph committed
    }
Reiter, Christoph's avatar
Reiter, Christoph committed
}