{
    "name": "publishpress/publishpress-shortlinks",
    "type": "wordpress-plugin",
    "license": "GPL-2.0-or-later",
    "description": "Complete solution for Affiliate Links, Link Shortening, Link Tracking, Link Branding & Marketing",
    "authors": [
        {
            "name": "PublishPress",
            "email": "help@publishpress.com",
            "homepage": "https://publishpress.com",
            "role": "Developer"
        }
    ],
    "config": {
        "process-timeout": 6000,
        "preferred-install": {
            "*": "dist"
        },
        "allow-plugins": {
            "dealerdirect/phpcodesniffer-composer-installer": true,
            "automattic/jetpack-autoloader": true,
            "php-http/discovery": true,
            "publishpress/dev-workspace": true,
            "phpstan/extension-installer": true
        }
    },
    "prefer-stable": true,
    "minimum-stability": "stable",
    "require": {
        "php": ">=7.2.5"
    },
    "require-dev": {
        "squizlabs/php_codesniffer": "^3.8",
        "wp-coding-standards/wpcs": "^3",
        "automattic/vipwpcs": "^3",
        "phpcompatibility/php-compatibility": "^9.3",
        "dealerdirect/phpcodesniffer-composer-installer": "^1",
        "overtrue/phplint": "^9.1",
        "friendsofphp/php-cs-fixer": "^3.49",
        "publishpress/publishpress-phpcs-standards": "^1.0.0",
        "publishpress/translations": "^1.0.0",
        "publishpress/dev-workspace": "^1.1.0"
    },
    "scripts": {
        "build:pot-php": "vendor/publishpress/dev-workspace/scripts/run.sh wp i18n make-pot . ./languages/tinypress.pot --domain=tinypress --exclude=dev-workspace,.wordpress-org,.github,dist,tests,lib,tmp,doc,*.js,*.js.map,*.jsx --allow-root",
        "build:pot": [
            "@build:pot-php"
        ],
        "build:lang": [
            "@build:pot",
            "@build:mo",
            "@build:l10n-php"
        ],
        "build:lang-batches": [
            "@build:mo-batches",
            "@build:l10n-php-batches"
        ],
        "build:mo": "vendor/publishpress/dev-workspace/scripts/run.sh wp i18n make-mo ./languages ./languages --allow-root",
        "build:po-json": "vendor/publishpress/dev-workspace/scripts/run.sh bash ./vendor/publishpress/dev-workspace/scripts/lang-make-json.sh",
        "build:l10n-php": "vendor/publishpress/dev-workspace/scripts/run.sh wp i18n make-php ./languages --allow-root",
        "build:l10n-php-batches": "vendor/publishpress/dev-workspace/scripts/run.sh bash ./vendor/publishpress/dev-workspace/scripts/lang-make-php-batches.sh ./languages",
        "build:mo-batches": "vendor/publishpress/dev-workspace/scripts/run.sh bash ./vendor/publishpress/dev-workspace/scripts/lang-make-mo-batches.sh ./languages",
        "fix:php": [
            "php-cs-fixer fix .",
            "@fix:cs"
        ],
        "translate:repair-plurals": "php vendor/bin/publishpress-translate --repair-plurals"
    },
    "scripts-descriptions": {
        "build:pot-php": "Generates the POT file for translations of PHP files.",
        "build:pot": "Generates the POT files for translations of PHP and JavaScript files.",
        "build:lang": "Generates the language files for translations.",
        "build:mo": "Generates the MO files for translation files.",
        "build:po-json": "Generates the JSON files for translations of JavaScript files.",
        "build:l10n-php": "Generates the PHP language files for performant translations (WP 6.5+).",
        "build:l10n-php-batches": "Generates the PHP language files by processing each language individually (workaround for wp-cli limitations).",
        "fix:php": "Fixes the PHP files.",
        "translate:repair-plurals": "Repairs plural translations in language files."
    },
    "extra": {
        "plugin-slug": "tinypress",
        "plugin-name": "publishpress-shortlinks",
        "plugin-folder": "publishpress-shortlinks",
        "version-constant": "TINYPRESS_PLUGIN_VERSION",
        "plugin-lang-domain": "tinypress",
        "plugin-github-repo": "publishpress/publishpress-shortlinks",
        "plugin-composer-package": "publishpress/publishpress-shortlinks"
    }
}
