s2b/vite-asset-collector

View on GitHub
composer.json

Summary

Maintainability
Test Coverage
{
    "name": "praetorius/vite-asset-collector",
    "description": "Use AssetCollector to embed frontend assets generated by vite",
    "type": "typo3-cms-extension",
    "license": [
        "GPL-2.0-or-later"
    ],
    "require": {
        "php": ">=8.1",
        "typo3/cms-core": "^11.5 || ^12.4 || ^13.0 || dev-main",
        "typo3/cms-fluid": "^11.5 || ^12.4 || ^13.0 || dev-main",
        "symfony/console": "^5.4 || ^6.4 || ^7.0"
    },
    "require-dev": {
        "typo3/coding-standards": "^0.8.x-dev",
        "editorconfig-checker/editorconfig-checker": "^10.3",
        "typo3/testing-framework": "^8.0 || ^7.0 || dev-main",
        "phpstan/phpstan": "^1.10",
        "saschaegerer/phpstan-typo3": "^1.8",
        "phpunit/phpunit": "^11.1 || ^10.5"
    },
    "autoload": {
        "psr-4": {
            "Praetorius\\ViteAssetCollector\\": "Classes/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Praetorius\\ViteAssetCollector\\Tests\\": "Tests/"
        }
    },
    "config": {
        "vendor-dir": ".Build/vendor",
        "bin-dir": ".Build/bin",
        "allow-plugins": {
            "typo3/class-alias-loader": true,
            "typo3/cms-composer-installers": true
        }
    },
    "extra": {
        "typo3/cms": {
            "web-dir": ".Build/web",
            "extension-key": "vite_asset_collector"
        }
    },
    "scripts": {
        "lint": [
            "@lint:php",
            "@lint:phpstan",
            "@lint:editorconfig"
        ],
        "lint:php": "php-cs-fixer fix --config=./Build/CodeQuality/.php-cs-fixer.dist.php --diff --dry-run",
        "lint:editorconfig": "ec -config Build/CodeQuality/.ecrc .",
        "lint:phpstan": "phpstan analyse -c Build/CodeQuality/phpstan.neon",

        "fix": [
            "@fix:php"
        ],
        "fix:php": "php-cs-fixer fix --config=./Build/CodeQuality/.php-cs-fixer.dist.php",

        "test": [
            "@test:unit",
            "@test:functional"
        ],
        "test:unit": [
            "@putenv TYPO3_CONTEXT=Testing",
            "phpunit -c Build/Testing/UnitTests.xml"
        ],
        "test:functional": [
            "@putenv TYPO3_CONTEXT=Testing",
            "phpunit -c Build/Testing/FunctionalTests.xml"
        ],

        "coverage": [
            "@coverage:unit",
            "@coverage:functional",
            "@coverage:report"
        ],
        "coverage:unit": "phpunit -c Build/Testing/UnitTests.xml --coverage-clover .Build/logs/clover.unit.xml --coverage-php .Build/logs/clover.unit.cov",
        "coverage:functional": "phpunit -c Build/Testing/FunctionalTests.xml --coverage-clover .Build/logs/clover.functional.xml --coverage-php .Build/logs/clover.functional.cov",
        "coverage:report": "phpcov merge --html .Build/logs/report .Build/logs"
    }
}