CPS-IT/project-builder

View on GitHub
installer/composer.json.twig

Summary

Maintainability
Test Coverage
{
    "name": "cpsit/project-builder-template-installer",
    "description": "Template installer for cpsit/project-builder",
    "license": "GPL-3.0-or-later",
    "require": {
        "php": "~8.1.0 || ~8.2.0 || ~8.3.0",
        "composer/installers": "^2.0",
        "oomphinc/composer-installers-extender": "^2.0",
{% for templateSource in templateSources %}
        "{{ templateSource.package.name }}": "{% if templateSource.shouldUseDynamicVersionConstraint %}*{% else %}{{ templateSource.package.prettyVersion }}{% endif %}"
{% endfor %}
    },
    "replace": {
        "cpsit/project-builder": "{% if simulatedRootPackageVersion %}{{ simulatedRootPackageVersion }}{% else %}self.version{% endif %}"
    },
    "repositories": [
{% for repository in repositories %}
        {
            "type": "{{ repository.type }}",
            "url": "{{ repository.url }}"
        }{% if not loop.last %},{% endif %}
{% endfor %}
    ],
    "minimum-stability": "dev",
    "prefer-stable": true,
    "config": {
        "allow-plugins": {
            "composer/installers": true,
            "oomphinc/composer-installers-extender": true
        },
{% if acceptInsecureConnections %}
        "secure-http": false,
{% endif %}
        "sort-packages": true,
        "vendor-dir": "{{ tempDir }}/vendor"
    },
    "extra": {
        "installer-paths": {
            "{{ rootDir }}/.build/templates/{$name}": [
                "type:project-builder-template"
            ]
        },
        "installer-types": [
            "project-builder-template"
        ]
    }
}