{
	"name": "pronamic/pronamic-pay-with-mollie-for-gravity-forms",
	"description": "Pronamic Pay plugin with Mollie for Gravity Forms integration.",
	"type": "wordpress-plugin",
	"license": "GPL-2.0-or-later",
	"config": {
		"allow-plugins": {
			"composer/installers": true,
			"automattic/jetpack-autoloader": true,
			"dealerdirect/phpcodesniffer-composer-installer": true
		},
		"platform": {
			"php": "8.2"
		},
		"platform-check": false,
		"sort-packages": true,
		"wp-slug": "pronamic-pay-with-mollie-for-gravity-forms"
	},
	"extra": {
		"installer-paths": {
			"packages/{$vendor}/{$name}": [
				"vendor:pronamic",
				"vendor:wp-pay",
				"vendor:wp-pay-extensions",
				"vendor:wp-pay-gateways",
				"woocommerce/action-scheduler"
			]
		}
	},
	"require": {
		"php": ">=8.2",
		"automattic/jetpack-autoloader": "^5.0",
		"composer/installers": "^2.3",
		"woocommerce/action-scheduler": "^3.9",
		"wp-pay-extensions/gravityforms": "^4.12",
		"wp-pay-gateways/mollie": "^4.19",
		"wp-pay/core": "^4.32"
	},
	"require-dev": {
		"pronamic/changelog-md-to-wordpress-plugin-readme-txt": "dev-main",
		"pronamic/pronamic-cli": "^1.1",
		"pronamic/wp-coding-standards": "^2.4",
		"roots/wordpress-no-content": "^6.8",
		"wp-cli/dist-archive-command": "*",
		"wp-cli/wp-cli-bundle": "*"
	},
	"scripts": {
		"phpcs": "vendor/bin/phpcs -s -v",
		"build": [
			"Pronamic\\ChangelogMdToWordPressPluginReadmeTxt\\Synchronizer::run",
			"rm -rf ./build",
			"mkdir ./build",
			"mkdir ./build/stage-1",
			"mkdir ./build/stage-2",
			"rsync --recursive --verbose --exclude-from=.distignore --exclude-from=.gitignore ./ ./build/stage-1/",
			"composer install --no-dev --prefer-dist --optimize-autoloader --working-dir=./build/stage-1/",
			"rsync --recursive --verbose --exclude-from=.distignore ./build/stage-1/ ./build/stage-2/",
			"vendor/bin/phpcbf -s -v --standard=phpcs-text-domain-fixer.xml ./build/stage-2/ || true",
			"vendor/bin/wp i18n make-pot ./build/stage-2/ --slug=pronamic-pay-with-mollie-for-gravity-forms",
			"vendor/bin/wp dist-archive ./build/stage-2/ --plugin-dirname=pronamic-pay-with-mollie-for-gravity-forms"
		],
		"translate": [
			"@build",
			"rsync --recursive --delete --verbose ./build/stage-2/languages/ ./languages/",
			"@update-po"
		],
		"update-po": "find languages/*.po -type f -exec msgmerge --update --backup=off {} languages/pronamic-pay-with-mollie-for-gravity-forms.pot \\;",
		"version": "@build",
		"release": [
			"@build",
			"vendor/bin/pronamic release-to-github"
		]
	}
}
