{
	"name": "pronamic/wp-datetime",
	"description": "WordPress DateTime library.",
	"license": "GPL-3.0-or-later",
	"type": "wordpress-plugin",
	"autoload": {
		"psr-4": {
			"Pronamic\\WordPress\\DateTime\\": "src"
		}
	},
	"config": {
		"sort-packages": true,
		"allow-plugins": {
			"koodimonni/composer-dropin-installer": true,
			"dealerdirect/phpcodesniffer-composer-installer": true,
			"roots/wordpress-core-installer": true,
			"bamarni/composer-bin-plugin": true
		}
	},
	"repositories": [
		{
			"type": "composer",
			"url": "https://wp-languages.github.io"
		}
	],
	"require": {
		"php": ">=7.4"
	},
	"require-dev": {
		"automattic/wordbless": "^0.4.1",
		"bamarni/composer-bin-plugin": "^1.4",
		"koodimonni-language/core-de_de": "*",
		"koodimonni-language/core-en_gb": "*",
		"koodimonni-language/core-fr_fr": "*",
		"koodimonni-language/core-ja": "*",
		"koodimonni-language/core-nl_nl": "*",
		"overtrue/phplint": "^9.0",
		"php-coveralls/php-coveralls": "^2.4",
		"php-stubs/wordpress-globals": "^0.2.0",
		"phpmd/phpmd": "^2.9",
		"pronamic/pronamic-cli": "^1.1",
		"pronamic/wp-coding-standards": "^2.0",
		"roots/wordpress": "^6.0",
		"yoast/phpunit-polyfills": "^2.0"
	},
	"scripts": {
		"coverage": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover build/logs/clover.xml --coverage-text",
		"coverage-clover": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover build/logs/clover.xml",
		"coverage-html": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-html build/coverage-html",
		"coverage-text": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text",
		"coveralls": "vendor/bin/php-coveralls -v",
		"phpcbf": "XDEBUG_MODE=off vendor/bin/phpcbf",
		"phpcs": "XDEBUG_MODE=off vendor/bin/phpcs -s -v",
		"phplint": "vendor/bin/phplint",
		"phpmd": "vendor/bin/phpmd src,tests text phpmd.ruleset.xml --suffixes php",
		"phpstan": "vendor/bin/phpstan analyse --memory-limit=-1",
		"phpunit": "vendor/bin/phpunit",
		"post-autoload-dump": [
			"mkdir -p wordpress/wp-content/languages",
			"mkdir -p wordpress/wp-content/languages/plugins",
			"mkdir -p wordpress/wp-content/languages/themes",
			"for file in languages/*.mo ; do cp $file wordpress/wp-content/languages/plugins/ ; done",
			"for file in vendor/koodimonni-language/*/* ; do cp $file wordpress/wp-content/languages/ ; done",
			"for file in vendor/koodimonni-language/*/* ; do cp $file wordpress/wp-content/languages/plugins/ ; done",
			"for file in vendor/koodimonni-language/*/* ; do cp $file wordpress/wp-content/languages/themes/ ; done"
		],
		"post-install-cmd": [
			"echo 'Optionally run: composer bin all install'",
			"mkdir -p wordpress/wp-content && cp vendor/automattic/wordbless/src/dbless-wpdb.php wordpress/wp-content/db.php"
		],
		"post-update-cmd": [
			"echo 'Optionally run: composer bin all update'",
			"mkdir -p wordpress/wp-content && cp vendor/automattic/wordbless/src/dbless-wpdb.php wordpress/wp-content/db.php"
		],
		"psalm": "vendor/bin/psalm"
	}
}
