{
	"name": "lochmueller/sourceopt",
	"type": "typo3-cms-extension",
	"description": "Optimization of the final page: reformatting the (x)HTML output & removal of new-lines, comments and generator-info including search and replace strings using your regular expressions. In addition combines all SVG selected within content-elements into one <symbol> file and replaces <img> by <use>.",
	"homepage": "https://github.com/lochmueller/sourceopt",
	"license": "GPL-2.0-or-later",
	"require": {
		"php": "^8.1",
		"typo3/cms-core": "^12.4||^13.4"
	},
	"autoload": {
		"psr-4": {
			"HTML\\Sourceopt\\": "Classes/"
		}
	},
	"replace": {
		"maxserv/replacecontent": "*",
		"typo3-ter/replacecontent": "*",
		"typo3-ter/sourceopt": "self.version"
	},
	"require-dev": {
		"typo3/testing-framework": "^8.2",
		"friendsofphp/php-cs-fixer": "^3.3",
		"phpmd/phpmd": "^2.10"
	},
	"autoload-dev": {
		"psr-4": {
			"HTML\\Sourceopt\\Tests\\": "Tests",
			"TYPO3\\CMS\\Core\\Tests\\": ".Build/vendor/typo3/cms/typo3/sysext/core/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": {
			"extension-key": "sourceopt",
			"web-dir": ".Build/Web"
		}
	},
	"scripts": {
		"test": [
			"phpunit -c Tests/UnitTests.xml"
		],
		"code": [
			"@code:php-cs-fixer"
		],
		"code:php-cs-fixer": [
			"php-cs-fixer fix --config Resources/Private/Build/PhpCsFixer.php --cache-file=.Build/phpcs.cache"
		],
		"code:php-cs-fixer:ci": [
			"php-cs-fixer fix --dry-run --diff --config Resources/Private/Build/PhpCsFixer.php --cache-file=.Build/phpcs.cache"
		],
		"code:phpmd": [
			"phpmd Classes/ text cleancode,codesize,controversial,design,naming --ignore-errors-on-exit --ignore-violations-on-exit"
		]
	}
}
